Module org.elasticsearch.compute
Class ExponentialHistogramStates.SeenSingleState
java.lang.Object
org.elasticsearch.compute.aggregation.ExponentialHistogramStates.SeenSingleState
- All Implemented Interfaces:
Closeable,AutoCloseable,AggregatorState,Releasable
- Enclosing class:
ExponentialHistogramStates
public static final class ExponentialHistogramStates.SeenSingleState
extends Object
implements AggregatorState
A state holding a single
ExponentialHistogram 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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()evaluateFinalHistogram(DriverContext driverContext) booleanisSeen()voidset(ExponentialHistogram histogram) 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
-
evaluateFinalHistogram
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-