Module org.elasticsearch.compute
Record Class GroupedTopNOperator.GroupedTopNOperatorFactory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.topn.GroupedTopNOperator.GroupedTopNOperatorFactory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
GroupedTopNOperator
public static record GroupedTopNOperator.GroupedTopNOperatorFactory(int topCount, List<ElementType> elementTypes, List<TopNEncoder> encoders, List<TopNOperator.SortOrder> sortOrders, List<Integer> groupKeys, int maxPageSize, long jumboPageBytes)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionGroupedTopNOperatorFactory(int topCount, List<ElementType> elementTypes, List<TopNEncoder> encoders, List<TopNOperator.SortOrder> sortOrders, List<Integer> groupKeys, int maxPageSize, long jumboPageBytes) Creates an instance of aGroupedTopNOperatorFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.Returns the value of theelementTypesrecord component.encoders()Returns the value of theencodersrecord component.final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) Creates a new intermediate operator.Returns the value of thegroupKeysrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thejumboPageBytesrecord component.intReturns the value of themaxPageSizerecord component.Returns the value of thesortOrdersrecord component.inttopCount()Returns the value of thetopCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupedTopNOperatorFactory
public GroupedTopNOperatorFactory(int topCount, List<ElementType> elementTypes, List<TopNEncoder> encoders, List<TopNOperator.SortOrder> sortOrders, List<Integer> groupKeys, int maxPageSize, long jumboPageBytes) Creates an instance of aGroupedTopNOperatorFactoryrecord class.- Parameters:
topCount- the value for thetopCountrecord componentelementTypes- the value for theelementTypesrecord componentencoders- the value for theencodersrecord componentsortOrders- the value for thesortOrdersrecord componentgroupKeys- the value for thegroupKeysrecord componentmaxPageSize- the value for themaxPageSizerecord componentjumboPageBytes- the value for thejumboPageBytesrecord 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 '=='. -
topCount
public int topCount()Returns the value of thetopCountrecord component.- Returns:
- the value of the
topCountrecord component
-
elementTypes
Returns the value of theelementTypesrecord component.- Returns:
- the value of the
elementTypesrecord component
-
encoders
Returns the value of theencodersrecord component.- Returns:
- the value of the
encodersrecord component
-
sortOrders
Returns the value of thesortOrdersrecord component.- Returns:
- the value of the
sortOrdersrecord component
-
groupKeys
Returns the value of thegroupKeysrecord component.- Returns:
- the value of the
groupKeysrecord component
-
maxPageSize
public int maxPageSize()Returns the value of themaxPageSizerecord component.- Returns:
- the value of the
maxPageSizerecord component
-
jumboPageBytes
public long jumboPageBytes()Returns the value of thejumboPageBytesrecord component.- Returns:
- the value of the
jumboPageBytesrecord component
-