Interface HistogramQueryResultOrBuilder (0.29.0)

public interface HistogramQueryResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsHistogram(String key)

public abstract boolean containsHistogram(String key)

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.

The key format is:

  • (for string histogram) string values stored in the field.

map<string, int64> histogram = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getHistogram() (deprecated)

public abstract Map<String,Long> getHistogram()

Use #getHistogramMap() instead.

Returns
TypeDescription
Map<String,Long>

getHistogramCount()

public abstract int getHistogramCount()

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.

The key format is:

  • (for string histogram) string values stored in the field.

map<string, int64> histogram = 2;

Returns
TypeDescription
int

getHistogramMap()

public abstract Map<String,Long> getHistogramMap()

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.

The key format is:

  • (for string histogram) string values stored in the field.

map<string, int64> histogram = 2;

Returns
TypeDescription
Map<String,Long>

getHistogramOrDefault(String key, long defaultValue)

public abstract long getHistogramOrDefault(String key, long defaultValue)

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.

The key format is:

  • (for string histogram) string values stored in the field.

map<string, int64> histogram = 2;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getHistogramOrThrow(String key)

public abstract long getHistogramOrThrow(String key)

A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.

The key format is:

  • (for string histogram) string values stored in the field.

map<string, int64> histogram = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
long

getHistogramQuery()

public abstract String getHistogramQuery()

Requested histogram expression.

string histogram_query = 1;

Returns
TypeDescription
String

The histogramQuery.

getHistogramQueryBytes()

public abstract ByteString getHistogramQueryBytes()

Requested histogram expression.

string histogram_query = 1;

Returns
TypeDescription
ByteString

The bytes for histogramQuery.