Module org.elasticsearch.compute
Record Class OutputOperator.OutputOperatorFactory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.OutputOperator.OutputOperatorFactory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory,SinkOperator.SinkOperatorFactory
- Enclosing class:
OutputOperator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord 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 sink operator.final inthashCode()Returns a hash code value for this object.mapper()Returns the value of themapperrecord component.Returns the value of thepageConsumerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutputOperatorFactory
public OutputOperatorFactory(List<String> columns, Function<Page, Page> mapper, Consumer<Page> pageConsumer) Creates an instance of aOutputOperatorFactoryrecord class.- Parameters:
columns- the value for thecolumnsrecord componentmapper- the value for themapperrecord componentpageConsumer- the value for thepageConsumerrecord component
-
-
Method Details
-
get
Description copied from interface:SinkOperator.SinkOperatorFactoryCreates a new sink operator.- Specified by:
getin interfaceOperator.OperatorFactory- Specified by:
getin interfaceSinkOperator.SinkOperatorFactory
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
pageConsumer
Returns the value of thepageConsumerrecord component.- Returns:
- the value of the
pageConsumerrecord component
-