Record Class ArrowToEsql
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasource.grpc.ArrowToEsql
- Record Components:
dataType- the logical type, used to convert the Arrow schema to ES|QL attributeselementType- the primitive type used to represent Arrow vector valuesconverter- block converter: to create an ES|QL block from an Arrow vector
public record ArrowToEsql(DataType dataType, ElementType elementType, ArrowToBlockConverter converter)
extends Record
Mapping information from Arrow vectors to an ES|QL blocks.
-
Constructor Summary
ConstructorsConstructorDescriptionArrowToEsql(DataType dataType, ElementType elementType, ArrowToBlockConverter converter) Creates an instance of aArrowToEsqlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconvert(org.apache.arrow.vector.FieldVector vector, BlockFactory blockFactory) Returns the value of theconverterrecord component.dataType()Returns the value of thedataTyperecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static ArrowToEsqlforField(org.apache.arrow.vector.types.pojo.Field field) static ArrowToEsqlforType(org.apache.arrow.vector.types.Types.MinorType minorType) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArrowToEsql
Creates an instance of aArrowToEsqlrecord class.- Parameters:
dataType- the value for thedataTyperecord componentelementType- the value for theelementTyperecord componentconverter- the value for theconverterrecord component
-
-
Method Details
-
forType
-
forField
-
convert
-
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). -
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
converter
Returns the value of theconverterrecord component.- Returns:
- the value of the
converterrecord component
-