public class ColumnWriterFactory extends Object
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 and Description |
---|
ColumnWriterFactory() |
Modifier and Type | Method and Description |
---|---|
static AbstractObjectWriter |
buildColumnWriter(ColumnMetadata schema,
ValueVector vector) |
static AbstractObjectWriter |
buildDummyColumnWriter(ColumnMetadata schema)
Build a writer for a non-projected column.
|
static BaseScalarWriter |
newWriter(ValueVector vector) |
public static AbstractObjectWriter buildColumnWriter(ColumnMetadata schema, ValueVector vector)
public static AbstractObjectWriter buildDummyColumnWriter(ColumnMetadata schema)
schema
- schema of the columnpublic static BaseScalarWriter newWriter(ValueVector vector)
Copyright © 1970 The Apache Software Foundation. All rights reserved.