Module org.elasticsearch.compute
Record Class ShowOperator.ShowOperatorFactory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.ShowOperator.ShowOperatorFactory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory,SourceOperator.SourceOperatorFactory
- Enclosing class:
ShowOperator
public static record ShowOperator.ShowOperatorFactory(List<List<Object>> objects)
extends Record
implements SourceOperator.SourceOperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionShowOperatorFactory(List<List<Object>> objects) Creates an instance of aShowOperatorFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) Creates a new source operator.final inthashCode()Returns a hash code value for this object.objects()Returns the value of theobjectsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShowOperatorFactory
Creates an instance of aShowOperatorFactoryrecord class.- Parameters:
objects- the value for theobjectsrecord component
-
-
Method Details
-
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
-
get
Description copied from interface:SourceOperator.SourceOperatorFactoryCreates a new source operator.- Specified by:
getin interfaceOperator.OperatorFactory- Specified by:
getin interfaceSourceOperator.SourceOperatorFactory
-
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). -
objects
Returns the value of theobjectsrecord component.- Returns:
- the value of the
objectsrecord component
-