Module org.elasticsearch.compute
Class TDigestStates.WithLongGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.TDigestStates.WithLongGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,org.elasticsearch.core.Releasable
- Enclosing class:
TDigestStates
public static final class TDigestStates.WithLongGroupingState
extends Object
implements GroupingAggregatorState
A grouping state consisting of a single
long value with a TDigestHolder per group.
The intermediate state contains three values in order: the long, the digest, and a boolean specifying if a value was set or not.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidenableGroupIdTracking(SeenGroupIds seenGroupIds) evaluateFinalTDigests(IntVector selected, DriverContext driverContext) longlongValue(int groupId) booleanseen(int groupId) voidset(int groupId, long longValue, TDigestHolder digestValue) 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) -
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
-
evaluateFinalTDigests
-
enableGroupIdTracking
- Specified by:
enableGroupIdTrackingin interfaceGroupingAggregatorState
-