Module org.elasticsearch.compute
Record Class GroupingAggregatorFunction.IntermediateAddInput
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.GroupingAggregatorFunction.IntermediateAddInput
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorFunction.AddInput,Releasable
- Enclosing interface:
GroupingAggregatorFunction
public static record GroupingAggregatorFunction.IntermediateAddInput(GroupingAggregatorFunction fn, SeenGroupIds seenGroupIds, Page page)
extends Record
implements GroupingAggregatorFunction.AddInput
-
Constructor Summary
ConstructorsConstructorDescriptionIntermediateAddInput(GroupingAggregatorFunction fn, SeenGroupIds seenGroupIds, Page page) Creates an instance of aIntermediateAddInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int positionOffset, IntArrayBlock groupIds) Implementation ofGroupingAggregatorFunction.AddInput.add(int, IntBlock)for a specific type of block.voidadd(int positionOffset, IntBigArrayBlock groupIds) Implementation ofGroupingAggregatorFunction.AddInput.add(int, IntBlock)for a specific type of block.voidSend a batch of group ids to the aggregator.voidclose()final booleanIndicates whether some other object is "equal to" this one.fn()Returns the value of thefnrecord component.final inthashCode()Returns a hash code value for this object.page()Returns the value of thepagerecord component.Returns the value of theseenGroupIdsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.aggregation.GroupingAggregatorFunction.AddInput
add
-
Constructor Details
-
IntermediateAddInput
Creates an instance of aIntermediateAddInputrecord class.- Parameters:
fn- the value for thefnrecord componentseenGroupIds- the value for theseenGroupIdsrecord componentpage- the value for thepagerecord component
-
-
Method Details
-
add
Description copied from interface:GroupingAggregatorFunction.AddInputImplementation ofGroupingAggregatorFunction.AddInput.add(int, IntBlock)for a specific type of block.- Specified by:
addin interfaceGroupingAggregatorFunction.AddInput
-
add
Description copied from interface:GroupingAggregatorFunction.AddInputImplementation ofGroupingAggregatorFunction.AddInput.add(int, IntBlock)for a specific type of block.- Specified by:
addin interfaceGroupingAggregatorFunction.AddInput
-
add
Description copied from interface:GroupingAggregatorFunction.AddInputSend a batch of group ids to the aggregator. ThegroupIdsmay be offset from the start of the block to allow for sending chunks of group ids.See
GroupingAggregatorFunction.AddInput.add(int, IntBlock)for discussion on the offset. This method can only be called with blocks contained in aVectorwhich only allows a single value per position.- Specified by:
addin interfaceGroupingAggregatorFunction.AddInput- Parameters:
positionOffset- offset into thePageused to build thisGroupingAggregatorFunction.AddInputof these idsgroupIds-Vectorof group id, some of which may be null or multivalued
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fn
Returns the value of thefnrecord component.- Returns:
- the value of the
fnrecord component
-
seenGroupIds
Returns the value of theseenGroupIdsrecord component.- Returns:
- the value of the
seenGroupIdsrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-