| java.lang.Object | |
| ↳ | com.google.api.gbase.client.AttributeHistogram |
Histogram information for one attribute, described in
an entry using attributes in the gm: namespace.
Make sure the current feed is an histogram feed and then get the
AttributeHistogram for the entry using:
getGoogleBaseMetadata().getAttributeHistogram().
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AttributeHistogram.UniqueValue | A value, as a string, and the number of times the value appears in the result set for the current query. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| attributeId | |||||||||||
| totalValueCount | |||||||||||
| values | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an unitialized AttributeHistogram.
| |||||||||||
Creates and initializes an AttributeHistogram.
| |||||||||||
Creates and initializes an AttributeHistogram.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new value into the histogram.
| |||||||||||
Generates the XML representation for this tag.
| |||||||||||
Gets the name and type of the attribute this histogram describes.
| |||||||||||
Gets the name of the attribute this histogram describes.
| |||||||||||
Gets the type of the attribute this histogram describes.
| |||||||||||
Creates a handler for this gdata extension tag.
| |||||||||||
Gets the total number of values found for this attribute in
the result set for the query.
| |||||||||||
Gets a list of unique values for the attribute and the count
of these values, for values repeated at least a certain number
of times.
| |||||||||||
Gets a list of unique values for the attribute and
the count for these values.
| |||||||||||
Sets attribute name and type.
| |||||||||||
Sets attribute name and type.
| |||||||||||
Sets the total value count.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Extension
| |||||||||||
Creates an unitialized AttributeHistogram.
Creates and initializes an AttributeHistogram.
| attributeName | Attribute name |
|---|---|
| attributeType | Attribute type |
Creates and initializes an AttributeHistogram.
| attributeId | Attribute Id |
|---|
Adds a new value into the histogram.
| count | Number of time the value was found |
|---|---|
| stringRepresentation |
| IllegalArgumentException | unless count is greater than 0 |
|---|---|
| NullPointerException | if stringRepresentation is null |
Generates the XML representation for this tag.
| w | XML writer |
|---|---|
| extProfile | Extension profile |
| IOException | thrown if there was an error writing to the XmlWriter |
|---|
Gets the name and type of the attribute this histogram describes.
Gets the name of the attribute this histogram describes.
Gets the type of the attribute this histogram describes.
Creates a handler for this gdata extension tag.
| extProfile | |
|---|---|
| namespace | |
| localName | |
| attrs |
| ParseException | |
|---|---|
| IOException |
Gets the total number of values found for this attribute in the result set for the query. This is not the total number of unique values, just the number of times this attribute was set.
>= sum(getValues().getCount())
Gets a list of unique values for the attribute and the count of these values, for values repeated at least a certain number of times.
| minimumCount | Minimum number of times the value should have been encountered in the result set to matter |
|---|
Gets a list of unique values for the attribute and the count for these values. Not all unique values might be available. For some types, no values are ever available.
Sets attribute name and type.
| name | |
|---|---|
| type |
Sets attribute name and type.
| attributeId |
|---|
Sets the total value count.
| count |
|---|