public class BitColumnWriter extends AbstractFixedWidthWriter
AbstractFixedWidthWriter.BaseFixedWidthWriter, AbstractFixedWidthWriter.BaseIntWriterAbstractScalarWriterImpl.ScalarObjectWriterWriterEvents.ColumnWriterListener, WriterEvents.StatelastWriteIndexcapacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZEschema, vectorIndex| Constructor and Description |
|---|
BitColumnWriter(ValueVector vector) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(ColumnReader from)
Copy a single value from the given reader, which must be of the
same type as this writer.
|
protected void |
fillEmpties(int writeIndex)
Fill empties.
|
protected int |
prepareWrite() |
void |
setBoolean(boolean value) |
void |
setDefaultValue(Object value)
Set the default value to be used to fill empties for this writer.
|
void |
setInt(int value) |
void |
setValue(Object value)
Write value to a vector as a Java object of the "native" type for
the column.
|
void |
setValueCount(int valueCount) |
ValueType |
valueType()
Describe the type of the value.
|
BaseDataValueVector |
vector() |
int |
width() |
dump, endWrite, lastWriteIndex, mandatoryResize, postRollover, preRollover, resize, restartRow, setBuffer, setLastWriteIndex, skipNulls, startWriteappendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBytes, setDate, setDecimal, setDouble, setFloat, setLong, setNull, setPeriod, setString, setTime, setTimestampbindIndex, endArrayValue, isProjected, rowStartIndex, saveRow, schema, startRow, type, writeIndexconversionError, extendedType, setObject, toStringpublic BitColumnWriter(ValueVector vector)
public BaseDataValueVector vector()
vector in class AbstractScalarWriterImplpublic int width()
width in class AbstractFixedWidthWriterpublic ValueType valueType()
ScalarWriterprotected int prepareWrite()
public void setValueCount(int valueCount)
setValueCount in class AbstractFixedWidthWriterprotected final void fillEmpties(int writeIndex)
fillEmpties in class AbstractFixedWidthWriterpublic final void setBoolean(boolean value)
setBoolean in interface ValueWritersetBoolean in class BaseScalarWriterpublic void setInt(int value)
setInt in interface ValueWritersetInt in class BaseScalarWriterpublic void setValue(Object value)
ValueWriterPrimarily to be used when the code already knows the object type.
value - a value that matches the primary setter above, or null
to set the column to nullfor the generic casepublic final void setDefaultValue(Object value)
ScalarWritervalue - the value to set. Cannot be null. The type of the value
must match that legal for ValueWriter.setValue(Object)public void copy(ColumnReader from)
ColumnWriterfrom - reader to provide the dataCopyright © 2021 The Apache Software Foundation. All rights reserved.