Module org.elasticsearch.compute
Class TDigestStates.SeenGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.TDigestStates.SeenGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,Releasable
- Enclosing class:
TDigestStates
public static final class TDigestStates.SeenGroupingState
extends Object
implements GroupingAggregatorState
A grouping state holding a single
TDigestHolder per group, without a sort key.
The intermediate state contains two values: the tdigest, then a boolean seen flag.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidenableGroupIdTracking(SeenGroupIds seenGroupIds) evaluateFinalTDigests(IntVector selected, DriverContext driverContext) booleanseen(int groupId) voidset(int groupId, TDigestHolder tdigest) 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) -
evaluateFinalTDigests
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
enableGroupIdTracking
- Specified by:
enableGroupIdTrackingin interfaceGroupingAggregatorState
-