Package org.apache.drill.exec.record
Class ColumnConverterFactory
java.lang.Object
org.apache.drill.exec.record.ColumnConverterFactory
- Direct Known Subclasses:
AvroColumnConverterFactory
,CassandraColumnConverterFactory
,ElasticsearchColumnConverterFactory
,IcebergColumnConverterFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildScalar
(ColumnMetadata readerSchema, ValueWriter writer) getConverter
(TupleMetadata providedSchema, ColumnMetadata readerSchema, ObjectWriter writer) Based on column type, creates corresponding column converter which holds conversion logic and appropriate writer to set converted data into.protected ColumnConverter
getMapConverter
(TupleMetadata providedSchema, TupleMetadata readerSchema, TupleWriter tupleWriter) getRootConverter
(TupleMetadata providedSchema, TupleMetadata readerSchema, TupleWriter tupleWriter)
-
Constructor Details
-
ColumnConverterFactory
-
-
Method Details
-
getRootConverter
public ColumnConverter getRootConverter(TupleMetadata providedSchema, TupleMetadata readerSchema, TupleWriter tupleWriter) -
getConverter
public ColumnConverter getConverter(TupleMetadata providedSchema, ColumnMetadata readerSchema, ObjectWriter writer) Based on column type, creates corresponding column converter which holds conversion logic and appropriate writer to set converted data into. For columns which are not projected,ColumnConverter.DummyColumnConverter
is used.- Parameters:
readerSchema
- column metadatawriter
- column writer- Returns:
- column converter
-
getMapConverter
protected ColumnConverter getMapConverter(TupleMetadata providedSchema, TupleMetadata readerSchema, TupleWriter tupleWriter) -
buildScalar
public ColumnConverter.ScalarColumnConverter buildScalar(ColumnMetadata readerSchema, ValueWriter writer)
-