Module org.elasticsearch.compute
Record Class LinearScoreEvalOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.fuse.LinearScoreEvalOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
LinearScoreEvalOperator
public static record LinearScoreEvalOperator.Factory(int discriminatorPosition, int scorePosition, LinearConfig linearConfig, String sourceText, int sourceLine, int sourceColumn)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(int discriminatorPosition, int scorePosition, LinearConfig linearConfig, String sourceText, int sourceLine, int sourceColumn) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.intReturns the value of thediscriminatorPositionrecord 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.Returns the value of thelinearConfigrecord component.intReturns the value of thescorePositionrecord component.intReturns the value of thesourceColumnrecord component.intReturns the value of thesourceLinerecord component.Returns the value of thesourceTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(int discriminatorPosition, int scorePosition, LinearConfig linearConfig, String sourceText, int sourceLine, int sourceColumn) Creates an instance of aFactoryrecord class.- Parameters:
discriminatorPosition- the value for thediscriminatorPositionrecord componentscorePosition- the value for thescorePositionrecord componentlinearConfig- the value for thelinearConfigrecord componentsourceText- the value for thesourceTextrecord componentsourceLine- the value for thesourceLinerecord componentsourceColumn- the value for thesourceColumnrecord 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 '=='. -
discriminatorPosition
public int discriminatorPosition()Returns the value of thediscriminatorPositionrecord component.- Returns:
- the value of the
discriminatorPositionrecord component
-
scorePosition
public int scorePosition()Returns the value of thescorePositionrecord component.- Returns:
- the value of the
scorePositionrecord component
-
linearConfig
Returns the value of thelinearConfigrecord component.- Returns:
- the value of the
linearConfigrecord component
-
sourceText
Returns the value of thesourceTextrecord component.- Returns:
- the value of the
sourceTextrecord component
-
sourceLine
public int sourceLine()Returns the value of thesourceLinerecord component.- Returns:
- the value of the
sourceLinerecord component
-
sourceColumn
public int sourceColumn()Returns the value of thesourceColumnrecord component.- Returns:
- the value of the
sourceColumnrecord component
-