public interface HistogramFactory
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
createAggregation(java.util.List<MultiBucketsAggregation.Bucket> buckets)
Create an
InternalAggregation object that wraps the given buckets. |
MultiBucketsAggregation.Bucket |
createBucket(java.lang.Number key,
long docCount,
InternalAggregations aggregations)
Create a
MultiBucketsAggregation.Bucket object that wraps the
given key, document count and aggregations. |
java.lang.Number |
getKey(MultiBucketsAggregation.Bucket bucket)
Get the key for the given bucket.
|
java.lang.Number |
nextKey(java.lang.Number key)
Given a key returned by
getKey(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket) , compute the lowest key that is
greater than it. |
java.lang.Number getKey(MultiBucketsAggregation.Bucket bucket)
java.lang.Number nextKey(java.lang.Number key)
getKey(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket)
, compute the lowest key that is
greater than it.InternalAggregation createAggregation(java.util.List<MultiBucketsAggregation.Bucket> buckets)
InternalAggregation
object that wraps the given buckets.MultiBucketsAggregation.Bucket createBucket(java.lang.Number key, long docCount, InternalAggregations aggregations)
MultiBucketsAggregation.Bucket
object that wraps the
given key, document count and aggregations.