Module org.elasticsearch.compute
Package org.elasticsearch.compute.lucene
Record Class ValuesSourceReaderOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.lucene.ValuesSourceReaderOperator.Factory
- Record Components:
fields- fields to loadshardContexts- per-shard loading informationdocChannel- the channel containing the shard, leaf/segment and doc id
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
ValuesSourceReaderOperator
public static record ValuesSourceReaderOperator.Factory(List<ValuesSourceReaderOperator.FieldInfo> fields, List<ValuesSourceReaderOperator.ShardContext> shardContexts, int docChannel)
extends Record
implements Operator.OperatorFactory
Creates a factory for
ValuesSourceReaderOperator.-
Constructor Summary
ConstructorsConstructorDescriptionFactory(List<ValuesSourceReaderOperator.FieldInfo> fields, List<ValuesSourceReaderOperator.ShardContext> shardContexts, int docChannel) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.intReturns the value of thedocChannelrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.get(DriverContext driverContext) Creates a new intermediate operator.final inthashCode()Returns a hash code value for this object.Returns the value of theshardContextsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(List<ValuesSourceReaderOperator.FieldInfo> fields, List<ValuesSourceReaderOperator.ShardContext> shardContexts, int docChannel) Creates an instance of aFactoryrecord class.- Parameters:
fields- the value for thefieldsrecord componentshardContexts- the value for theshardContextsrecord componentdocChannel- the value for thedocChannelrecord 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 '=='. -
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
shardContexts
Returns the value of theshardContextsrecord component.- Returns:
- the value of the
shardContextsrecord component
-
docChannel
public int docChannel()Returns the value of thedocChannelrecord component.- Returns:
- the value of the
docChannelrecord component
-