Module org.elasticsearch.compute
Class ExponentialHistogramStates.WithLongGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.ExponentialHistogramStates.WithLongGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,org.elasticsearch.core.Releasable
- Enclosing class:
ExponentialHistogramStates
public static final class ExponentialHistogramStates.WithLongGroupingState
extends Object
implements GroupingAggregatorState
A grouping state consisting of a single
long value with a ExponentialHistogram per group.
The intermediate state contains three values in order: the long, 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) longlongValue(int groupId) booleanseen(int groupId) voidset(int groupId, long longValue, ExponentialHistogram histogramValue) voidtoIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) Extracts an intermediate view of the contents of this state.
-
Method Details
-
set
-
toIntermediate
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) Description copied from interface:GroupingAggregatorStateExtracts an intermediate view of the contents of this state.- Specified by:
toIntermediatein interfaceGroupingAggregatorState
-
seen
public boolean seen(int groupId) -
longValue
public long longValue(int groupId) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
evaluateFinalHistograms
-
enableGroupIdTracking
- Specified by:
enableGroupIdTrackingin interfaceGroupingAggregatorState
-