Module org.elasticsearch.compute
Class ExponentialHistogramStates.WithLongSingleState
java.lang.Object
org.elasticsearch.compute.aggregation.ExponentialHistogramStates.WithLongSingleState
- All Implemented Interfaces:
Closeable,AutoCloseable,AggregatorState,org.elasticsearch.core.Releasable
- Enclosing class:
ExponentialHistogramStates
public static final class ExponentialHistogramStates.WithLongSingleState
extends Object
implements AggregatorState
A state consisting of a single
long value with a ExponentialHistogram.
The intermediate state contains three values in order: the long, 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()longvoidset(long longValue, ExponentialHistogram histogram) voidtoIntermediate(Block[] blocks, int offset, DriverContext driverContext) Extracts an intermediate view of the contents of this state.
-
Constructor Details
-
WithLongSingleState
-
-
Method Details
-
isSeen
public boolean isSeen() -
longValue
public long longValue() -
histogramValue
-
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 interfaceorg.elasticsearch.core.Releasable
-