Class TDigestStates.WithLongSingleState

java.lang.Object
org.elasticsearch.compute.aggregation.TDigestStates.WithLongSingleState
All Implemented Interfaces:
Closeable, AutoCloseable, AggregatorState, org.elasticsearch.core.Releasable
Enclosing class:
TDigestStates

public static final class TDigestStates.WithLongSingleState extends Object implements AggregatorState
A state consisting of a single long value with a TDigestHolder. The intermediate state contains three values in order: the long, the digest, and a boolean specifying if a value was set or not.
  • Constructor Details

    • WithLongSingleState

      public WithLongSingleState(CircuitBreaker breaker)
  • Method Details

    • isSeen

      public boolean isSeen()
    • longValue

      public long longValue()
    • set

      public void set(long longValue, TDigestHolder digestValue)
    • toIntermediate

      public void toIntermediate(Block[] blocks, int offset, DriverContext driverContext)
      Description copied from interface: AggregatorState
      Extracts an intermediate view of the contents of this state.
      Specified by:
      toIntermediate in interface AggregatorState
    • evaluateFinalTDigest

      public Block evaluateFinalTDigest(DriverContext driverContext)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable