Class AbstractArrayState

java.lang.Object
org.elasticsearch.compute.aggregation.AbstractArrayState
All Implemented Interfaces:
Closeable, AutoCloseable, GroupingAggregatorState, org.elasticsearch.core.Releasable
Direct Known Subclasses:
AbstractFallibleArrayState, FirstOverTimeDoubleAggregator.GroupingState, FirstOverTimeFloatAggregator.GroupingState, FirstOverTimeIntAggregator.GroupingState, FirstOverTimeLongAggregator.GroupingState, IpArrayState, LastOverTimeDoubleAggregator.GroupingState, LastOverTimeFloatAggregator.GroupingState, LastOverTimeIntAggregator.GroupingState, LastOverTimeLongAggregator.GroupingState

public abstract class AbstractArrayState extends Object implements org.elasticsearch.core.Releasable, GroupingAggregatorState
Base class for array states that track which group ids have been set. Most of this class subclasses are autogenerated.

Most of this class subclasses are autogenerated.

  • Field Details

    • bigArrays

      protected final BigArrays bigArrays
  • Constructor Details

    • AbstractArrayState

      public AbstractArrayState(BigArrays bigArrays)
  • Method Details

    • hasValue

      public boolean hasValue(int groupId)
    • enableGroupIdTracking

      public final void enableGroupIdTracking(SeenGroupIds seenGroupIds)
      Switches this array state into tracking which group ids are set. This is idempotent and fast if already tracking so it's safe to, say, call it once for every block of values that arrives containing null.
      Specified by:
      enableGroupIdTracking in interface GroupingAggregatorState
    • trackGroupId

      protected final void trackGroupId(int groupId)
    • trackingGroupIds

      protected final boolean trackingGroupIds()
    • 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