Module org.elasticsearch.compute
Record Class AggregationOperator.AggregationOperatorFactory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.AggregationOperator.AggregationOperatorFactory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
AggregationOperator
public static record AggregationOperator.AggregationOperatorFactory(List<Aggregator.Factory> aggregators, AggregatorMode mode)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionAggregationOperatorFactory(List<Aggregator.Factory> aggregators, AggregatorMode mode) Creates an instance of aAggregationOperatorFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregatorsrecord component.describe()Returns a description of the component.final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) Creates a new intermediate operator.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AggregationOperatorFactory
Creates an instance of aAggregationOperatorFactoryrecord class.- Parameters:
aggregators- the value for theaggregatorsrecord componentmode- the value for themoderecord component
-
-
Method Details
-
get
Description copied from interface:Operator.OperatorFactoryCreates a new intermediate operator.- Specified by:
getin interfaceOperator.OperatorFactory
-
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. -
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
-
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). -
aggregators
Returns the value of theaggregatorsrecord component.- Returns:
- the value of the
aggregatorsrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-