Interface Aggregation.HistogramOrBuilder (0.37.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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
List<Double>

A list containing the lowerBounds.