*
* @param entry a Google Base data API metadata entry
*/
private static void printMetadataEntry(GoogleBaseEntry entry) {
MetadataEntryExtension metadata = entry.getGoogleBaseMetadata();
AttributeHistogram attributeHistogram = metadata.getAttributeHistogram();
System.out.println(attributeHistogram.getAttributeName() +
" (" + attributeHistogram.getAttributeType().getName() + "): " +
"valueCount=" + attributeHistogram.getTotalValueCount() + " - " +
entry.getId());
for (UniqueValue value : attributeHistogram.getValues()) {
System.out.println(value.getValueAsString() +
" count=" + value.getCount());
}
}