Interface Aggregation.HistogramOrBuilder (0.17.0)

public static interface Aggregation.HistogramOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLowerBounds(int index)

public abstract double getLowerBounds(int index)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
double

The lowerBounds at the given index.

getLowerBoundsCount()

public abstract int getLowerBoundsCount()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
TypeDescription
int

The count of lowerBounds.

getLowerBoundsList()

public abstract List<Double> getLowerBoundsList()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
TypeDescription
List<Double>

A list containing the lowerBounds.