Module org.elasticsearch.compute
Class AbstractArrayState
java.lang.Object
org.elasticsearch.compute.aggregation.AbstractArrayState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,org.elasticsearch.core.Releasable
- Direct Known Subclasses:
AbstractFallibleArrayState,IpArrayState
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final voidenableGroupIdTracking(SeenGroupIds seenGroupIds) Switches this array state into tracking which group ids are set.booleanhasValue(int groupId) protected final voidtrackGroupId(int groupId) protected final booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.aggregation.GroupingAggregatorState
toIntermediate
-
Field Details
-
bigArrays
-
-
Constructor Details
-
AbstractArrayState
-
-
Method Details
-
hasValue
public boolean hasValue(int groupId) -
enableGroupIdTracking
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 containingnull.- Specified by:
enableGroupIdTrackingin interfaceGroupingAggregatorState
-
trackGroupId
protected final void trackGroupId(int groupId) -
trackingGroupIds
protected final boolean trackingGroupIds() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-