public static class ColumnAccessors.Var16CharColumnWriter extends BaseVarWidthWriter
AbstractScalarWriterImpl.ScalarObjectWriter
WriterEvents.ColumnWriterListener, WriterEvents.State
offsetsWriter
capacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZE
schema, vectorIndex
Constructor and Description |
---|
Var16CharColumnWriter(ValueVector vector) |
Modifier and Type | Method and Description |
---|---|
void |
appendBytes(byte[] value,
int len) |
void |
copy(ColumnReader from)
Copy a single value from the given reader, which must be of the
same type as this writer.
|
void |
setBytes(byte[] value,
int len) |
void |
setDefaultValue(Object value)
Set the default value to be used to fill empties for this writer.
|
void |
setString(String value) |
void |
setValue(Object value)
Write value to a vector as a Java object of the "native" type for
the column.
|
ValueType |
valueType()
Describe the type of the value.
|
BaseDataValueVector |
vector() |
bindIndex, dump, endWrite, lastWriteIndex, postRollover, prepareAppend, prepareWrite, preRollover, restartRow, setBuffer, skipNulls, startRow, startWrite
bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBoolean, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setTime, setTimestamp
endArrayValue, isProjected, rowStartIndex, saveRow, schema, type, writeIndex
conversionError, extendedType, setObject, toString
public Var16CharColumnWriter(ValueVector vector)
public BaseDataValueVector vector()
vector
in class AbstractScalarWriterImpl
public ValueType valueType()
ScalarWriter
public final void setBytes(byte[] value, int len)
setBytes
in interface ValueWriter
setBytes
in class BaseScalarWriter
public final void appendBytes(byte[] value, int len)
appendBytes
in interface ValueWriter
appendBytes
in class BaseScalarWriter
public final void setString(String value)
setString
in interface ValueWriter
setString
in class BaseScalarWriter
public final void setValue(Object value)
ValueWriter
Primarily 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 case
public final void setDefaultValue(Object value)
ScalarWriter
value
- the value to set. Cannot be null. The type of the value
must match that legal for ValueWriter.setValue(Object)
public final void copy(ColumnReader from)
ColumnWriter
from
- reader to provide the dataCopyright © 1970 The Apache Software Foundation. All rights reserved.