Module org.elasticsearch.compute
Class ExponentialHistogramStates.SeenGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.ExponentialHistogramStates.SeenGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,Releasable
- Enclosing class:
ExponentialHistogramStates
public static final class ExponentialHistogramStates.SeenGroupingState
extends Object
implements GroupingAggregatorState
A grouping state consisting of a single
ExponentialHistogram per group,
without a sort key.
The intermediate state contains two values in order: the histogram, and a boolean
specifying if a value was set or not.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidenableGroupIdTracking(SeenGroupIds seenGroupIds) evaluateFinalHistograms(IntVector selected, DriverContext driverContext) booleanseen(int groupId) voidset(int groupId, ExponentialHistogram histogramValue) voidtoIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext)
-
Method Details
-
set
-
toIntermediate
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) -
seen
public boolean seen(int groupId) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
evaluateFinalHistograms
-
enableGroupIdTracking
- Specified by:
enableGroupIdTrackingin interfaceGroupingAggregatorState
-