Module org.elasticsearch.compute
Record Class SparklineGenerateEmptyBucketsOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.SparklineGenerateEmptyBucketsOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
SparklineGenerateEmptyBucketsOperator
public static record SparklineGenerateEmptyBucketsOperator.Factory(int numValueColumns, Rounding.Prepared dateBucketRounding, long minDate, long maxDate)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(int numValueColumns, Rounding.Prepared dateBucketRounding, long minDate, long maxDate) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedateBucketRoundingrecord 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.longmaxDate()Returns the value of themaxDaterecord component.longminDate()Returns the value of theminDaterecord component.intReturns the value of thenumValueColumnsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(int numValueColumns, Rounding.Prepared dateBucketRounding, long minDate, long maxDate) Creates an instance of aFactoryrecord class.- Parameters:
numValueColumns- the value for thenumValueColumnsrecord componentdateBucketRounding- the value for thedateBucketRoundingrecord componentminDate- the value for theminDaterecord componentmaxDate- the value for themaxDaterecord 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 '=='. -
numValueColumns
public int numValueColumns()Returns the value of thenumValueColumnsrecord component.- Returns:
- the value of the
numValueColumnsrecord component
-
dateBucketRounding
Returns the value of thedateBucketRoundingrecord component.- Returns:
- the value of the
dateBucketRoundingrecord component
-
minDate
public long minDate()Returns the value of theminDaterecord component.- Returns:
- the value of the
minDaterecord component
-
maxDate
public long maxDate()Returns the value of themaxDaterecord component.- Returns:
- the value of the
maxDaterecord component
-