Module org.elasticsearch.compute
Class TDigestStates.SeenSingleState
java.lang.Object
org.elasticsearch.compute.aggregation.TDigestStates.SeenSingleState
- All Implemented Interfaces:
Closeable,AutoCloseable,AggregatorState,Releasable
- Enclosing class:
TDigestStates
A state holding a single
TDigestHolder without a sort key.
The intermediate state contains two values: the tdigest, then a boolean seen flag.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()evaluateFinalTDigest(DriverContext driverContext) booleanisSeen()voidset(TDigestHolder tdigest) voidtoIntermediate(Block[] blocks, int offset, DriverContext driverContext) Extracts an intermediate view of the contents of this state.
-
Constructor Details
-
SeenSingleState
-
-
Method Details
-
isSeen
public boolean isSeen() -
set
-
toIntermediate
Description copied from interface:AggregatorStateExtracts an intermediate view of the contents of this state.- Specified by:
toIntermediatein interfaceAggregatorState
-
evaluateFinalTDigest
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-