Module org.elasticsearch.compute
Record Class OrdinalsGroupingOperator.OrdinalsGroupingOperatorFactory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.OrdinalsGroupingOperator.OrdinalsGroupingOperatorFactory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
OrdinalsGroupingOperator
public static record OrdinalsGroupingOperator.OrdinalsGroupingOperatorFactory(IntFunction<BlockLoader> blockLoaders, List<ValuesSourceReaderOperator.ShardContext> shardContexts, ElementType groupingElementType, int docChannel, String groupingField, List<GroupingAggregator.Factory> aggregators, int maxPageSize)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionOrdinalsGroupingOperatorFactory(IntFunction<BlockLoader> blockLoaders, List<ValuesSourceReaderOperator.ShardContext> shardContexts, ElementType groupingElementType, int docChannel, String groupingField, List<GroupingAggregator.Factory> aggregators, int maxPageSize) Creates an instance of aOrdinalsGroupingOperatorFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregatorsrecord component.Returns the value of theblockLoadersrecord component.describe()Returns a description of the component.intReturns the value of thedocChannelrecord component.final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) Creates a new intermediate operator.Returns the value of thegroupingElementTyperecord component.Returns the value of thegroupingFieldrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPageSizerecord component.Returns the value of theshardContextsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrdinalsGroupingOperatorFactory
public OrdinalsGroupingOperatorFactory(IntFunction<BlockLoader> blockLoaders, List<ValuesSourceReaderOperator.ShardContext> shardContexts, ElementType groupingElementType, int docChannel, String groupingField, List<GroupingAggregator.Factory> aggregators, int maxPageSize) Creates an instance of aOrdinalsGroupingOperatorFactoryrecord class.- Parameters:
blockLoaders- the value for theblockLoadersrecord componentshardContexts- the value for theshardContextsrecord componentgroupingElementType- the value for thegroupingElementTyperecord componentdocChannel- the value for thedocChannelrecord componentgroupingField- the value for thegroupingFieldrecord componentaggregators- the value for theaggregatorsrecord componentmaxPageSize- the value for themaxPageSizerecord component
-
-
Method Details
-
get
Description copied from interface:Operator.OperatorFactoryCreates a new intermediate operator.- Specified by:
getin interfaceOperator.OperatorFactory
-
describe
Description copied from interface:DescribableReturns a description of the component. This description can be more specific than Object::toString.- Specified by:
describein interfaceDescribable- Returns:
- the description
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
blockLoaders
Returns the value of theblockLoadersrecord component.- Returns:
- the value of the
blockLoadersrecord component
-
shardContexts
Returns the value of theshardContextsrecord component.- Returns:
- the value of the
shardContextsrecord component
-
groupingElementType
Returns the value of thegroupingElementTyperecord component.- Returns:
- the value of the
groupingElementTyperecord component
-
docChannel
public int docChannel()Returns the value of thedocChannelrecord component.- Returns:
- the value of the
docChannelrecord component
-
groupingField
Returns the value of thegroupingFieldrecord component.- Returns:
- the value of the
groupingFieldrecord component
-
aggregators
Returns the value of theaggregatorsrecord component.- Returns:
- the value of the
aggregatorsrecord component
-
maxPageSize
public int maxPageSize()Returns the value of themaxPageSizerecord component.- Returns:
- the value of the
maxPageSizerecord component
-