Module org.elasticsearch.compute
Record Class TimeSeriesAggregationOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.TimeSeriesAggregationOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
TimeSeriesAggregationOperator
public static record TimeSeriesAggregationOperator.Factory(Rounding.Prepared timeBucket, boolean sortedInput, List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List<GroupingAggregator.Factory> aggregators, int maxPageSize)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(Rounding.Prepared timeBucket, boolean sortedInput, List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List<GroupingAggregator.Factory> aggregators, int maxPageSize) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregatorModerecord component.Returns 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.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPageSizerecord component.booleanReturns the value of thesortedInputrecord component.Returns the value of thetimeBucketrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(Rounding.Prepared timeBucket, boolean sortedInput, List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List<GroupingAggregator.Factory> aggregators, int maxPageSize) Creates an instance of aFactoryrecord class.- Parameters:
timeBucket- the value for thetimeBucketrecord componentsortedInput- the value for thesortedInputrecord componentgroups- the value for thegroupsrecord componentaggregatorMode- the value for theaggregatorModerecord 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 '=='. -
timeBucket
Returns the value of thetimeBucketrecord component.- Returns:
- the value of the
timeBucketrecord component
-
sortedInput
public boolean sortedInput()Returns the value of thesortedInputrecord component.- Returns:
- the value of the
sortedInputrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
aggregatorMode
Returns the value of theaggregatorModerecord component.- Returns:
- the value of the
aggregatorModerecord 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
-