public class DictEntryWriter extends AbstractTupleWriter
Modifier and Type | Class and Description |
---|---|
static class |
DictEntryWriter.DictEntryObjectWriter |
AbstractTupleWriter.TupleObjectWriter, AbstractTupleWriter.TupleWriterListener
TupleWriter.UndefinedColumnException
WriterEvents.ColumnWriterListener, WriterEvents.State
childIndex, listener, logger, state, tupleSchema, vectorIndex, writers
Constructor and Description |
---|
DictEntryWriter(ColumnMetadata schema,
List<AbstractObjectWriter> writers) |
Modifier and Type | Method and Description |
---|---|
void |
bindIndex(ColumnWriterIndex index)
Bind the writer to a writer index.
|
static DictEntryWriter.DictEntryObjectWriter |
buildDictEntryWriter(ColumnMetadata schema,
List<AbstractObjectWriter> keyValueWriters,
DictVector vector) |
boolean |
isProjected()
Whether this writer is projected (is backed by a materialized vector),
or is unprojected (is just a dummy writer.) In most cases, clients can
ignore whether the column is projected and just write to the writer.
|
ColumnMetadata |
schema()
Returns the schema of the column associated with this writer.
|
void |
setObject(Object value)
Generic technique to write data as a generic Java object.
|
addColumn, addColumn, addColumnWriter, array, array, bindIndex, bindListener, bindListener, column, column, copy, dict, dict, dump, endArrayValue, endWrite, isProjected, lastWriteIndex, listener, nullable, postRollover, preRollover, restartRow, rowStartIndex, saveRow, scalar, scalar, set, setNull, size, startRow, startWrite, tuple, tuple, tupleSchema, type, type, type, variant, variant, writeIndex
public DictEntryWriter(ColumnMetadata schema, List<AbstractObjectWriter> writers)
public static DictEntryWriter.DictEntryObjectWriter buildDictEntryWriter(ColumnMetadata schema, List<AbstractObjectWriter> keyValueWriters, DictVector vector)
public void bindIndex(ColumnWriterIndex index)
WriterEvents
bindIndex
in interface WriterEvents
bindIndex
in class AbstractTupleWriter
index
- the writer index (top level or nested for
arrays)public boolean isProjected()
ColumnWriter
isProjected
in interface ColumnWriter
isProjected
in class AbstractTupleWriter
public ColumnMetadata schema()
ColumnWriter
public void setObject(Object value)
ColumnWriter
setObject
in interface ColumnWriter
setObject
in class AbstractTupleWriter
value
- value to write to the vector. The Java type of the
object indicates the Drill storage typeCopyright © 1970 The Apache Software Foundation. All rights reserved.