Interface HistogramFactory
- All Known Implementing Classes:
InternalAutoDateHistogram
,InternalDateHistogram
,InternalHistogram
,InternalVariableWidthHistogram
public interface HistogramFactory
Implemented by histogram aggregations and used by pipeline aggregations to insert buckets.
-
Method Summary
Modifier and TypeMethodDescription<MultiBucketsAggregation.Bucket> buckets)
Create anInternalAggregation
object that wraps the given buckets.key, long docCount, InternalAggregations aggregations)
Create aMultiBucketsAggregation.Bucket
object that wraps the given key, document count and aggregations.getKey(MultiBucketsAggregation.Bucket bucket)
Get the key for the given bucket.key)
Given a key returned bygetKey(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket)
, compute the lowest key that is greater than it.
-
Method Details
-
getKey
getKey(MultiBucketsAggregation.Bucket bucket)Get the key for the given bucket. Date histograms must return the number of millis since Epoch of the bucket key while numeric histograms must return the double value of the key. -
nextKey
nextKey( key)Given a key returned bygetKey(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket)
, compute the lowest key that is greater than it. -
createAggregation
<MultiBucketsAggregation.Bucket> buckets)Create anInternalAggregation
object that wraps the given buckets. -
createBucket
key, long docCount, InternalAggregations aggregations)Create aMultiBucketsAggregation.Bucket
object that wraps the given key, document count and aggregations.
-