Module org.elasticsearch.compute
Class AbstractAllByIntGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.AbstractArrayState
org.elasticsearch.compute.aggregation.AbstractAllByKeyGroupingState
org.elasticsearch.compute.aggregation.AbstractAllByIntGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,Releasable
- Direct Known Subclasses:
AllFirstBooleanByIntAggregator.GroupingState,AllFirstBytesRefByIntAggregator.GroupingState,AllFirstDoubleByIntAggregator.GroupingState,AllFirstFloatByIntAggregator.GroupingState,AllFirstIntByIntAggregator.GroupingState,AllFirstLongByIntAggregator.GroupingState,AllLastBooleanByIntAggregator.GroupingState,AllLastBytesRefByIntAggregator.GroupingState,AllLastDoubleByIntAggregator.GroupingState,AllLastFloatByIntAggregator.GroupingState,AllLastIntByIntAggregator.GroupingState,AllLastLongByIntAggregator.GroupingState
Grouping state base class for "all first/last by int key" aggregators.
Extends
AbstractAllByKeyGroupingState with an int-typed key array.-
Field Summary
Fields inherited from class org.elasticsearch.compute.aggregation.AbstractArrayState
bigArrays -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.compute.aggregation.AbstractAllByKeyGroupingState
clearNullKey, clearNullValue, markNullKey, markNullValue, nullKey, nullValueMethods inherited from class org.elasticsearch.compute.aggregation.AbstractArrayState
enableGroupIdTracking, hasValue, toIntermediate, trackGroupId, trackingGroupIds
-
Constructor Details
-
AbstractAllByIntGroupingState
-
-
Method Details
-
key
protected int key(int group) -
key
protected void key(int group, int value) -
grow
protected void grow(int group) Description copied from class:AbstractAllByKeyGroupingStateCalled when a new group id is seen to grow subclass arrays to accommodategroup. BothAbstractAllByKeyGroupingState.nullValueandAbstractAllByKeyGroupingState.nullKeyare lazyBitArrays that handle out-of-range indices safely, so no grow is needed in this base class.- Specified by:
growin classAbstractAllByKeyGroupingState
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable- Overrides:
closein classAbstractAllByKeyGroupingState
-