Class ColumnWriterFactory
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.ColumnWriterFactory
Gather generated writer classes into a set of class tables to allow rapid
run-time creation of writers. Builds the writer and its object writer
wrapper which binds the vector to the writer.
Compared to the reader factory, the writer factor is a bit more complex as it must handle both the projected ("real" writer) and unprojected ("dummy" writer) cases. Because of the way the various classes interact, it is cleaner to put the factory methods here rather than in the various writers, as is done in the case of the readers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractObjectWriter
buildColumnWriter
(ColumnMetadata schema, ValueVector vector) static AbstractObjectWriter
buildDummyColumnWriter
(ColumnMetadata schema) Build a writer for a non-projected column.static BaseScalarWriter
newWriter
(ValueVector vector)
-
Constructor Details
-
ColumnWriterFactory
public ColumnWriterFactory()
-
-
Method Details
-
buildColumnWriter
-
buildDummyColumnWriter
Build a writer for a non-projected column.- Parameters:
schema
- schema of the column- Returns:
- a "dummy" writer for the column
-
newWriter
-