Module org.elasticsearch.compute
Class AbstractAllByLongGroupingState
java.lang.Object
org.elasticsearch.compute.aggregation.AbstractArrayState
org.elasticsearch.compute.aggregation.AbstractAllByKeyGroupingState
org.elasticsearch.compute.aggregation.AbstractAllByLongGroupingState
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorState,Releasable
- Direct Known Subclasses:
AllFirstBooleanByLongAggregator.GroupingState,AllFirstBytesRefByLongAggregator.GroupingState,AllFirstDoubleByLongAggregator.GroupingState,AllFirstFloatByLongAggregator.GroupingState,AllFirstIntByLongAggregator.GroupingState,AllFirstLongByLongAggregator.GroupingState,AllLastBooleanByLongAggregator.GroupingState,AllLastBytesRefByLongAggregator.GroupingState,AllLastDoubleByLongAggregator.GroupingState,AllLastFloatByLongAggregator.GroupingState,AllLastIntByLongAggregator.GroupingState,AllLastLongByLongAggregator.GroupingState
Grouping state base class for "all first/last by long key" aggregators.
Extends
AbstractAllByKeyGroupingState with a long-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
-
AbstractAllByLongGroupingState
-
-
Method Details
-
key
protected long key(int group) -
key
protected void key(int group, long 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
-