Class ColumnAccessors.Var16CharColumnWriter
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriter
org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
org.apache.drill.exec.vector.accessor.writer.BaseVarWidthWriter
org.apache.drill.exec.vector.accessor.ColumnAccessors.Var16CharColumnWriter
- All Implemented Interfaces:
ColumnWriter,ScalarWriter,ValueWriter,WriterEvents,WriterPosition
- Enclosing class:
ColumnAccessors
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
AbstractScalarWriterImpl.ScalarObjectWriterNested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State -
Field Summary
Fields inherited from class org.apache.drill.exec.vector.accessor.writer.BaseVarWidthWriter
offsetsWriterFields inherited from class org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
capacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZEFields inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
schema, vectorIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidappendBytes(byte[] value, int len) final voidcopy(ColumnReader from) Copy a single value from the given reader, which must be of the same type as this writer.final voidsetBytes(byte[] value, int len) final voidsetDefaultValue(Object value) Set the default value to be used to fill empties for this writer.final voidfinal voidWrite value to a vector as a Java object of the "native" type for the column.Describe the type of the value.vector()Methods inherited from class org.apache.drill.exec.vector.accessor.writer.BaseVarWidthWriter
bindIndex, dump, endWrite, lastWriteIndex, postRollover, prepareAppend, prepareWrite, preRollover, restartRow, setBuffer, skipNulls, startRow, startWriteMethods inherited from class org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBoolean, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setTime, setTimestampMethods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
endArrayValue, isProjected, rowStartIndex, saveRow, schema, type, writeIndexMethods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriter
conversionError, extendedType, setObject, toString
-
Constructor Details
-
Var16CharColumnWriter
-
-
Method Details
-
vector
- Specified by:
vectorin classAbstractScalarWriterImpl
-
valueType
Description copied from interface:ScalarWriterDescribe the type of the value. This is a compression of the value vector type: it describes which method will return the vector value.- Returns:
- the value type which indicates which get method is valid for the column
-
setBytes
public final void setBytes(byte[] value, int len) - Specified by:
setBytesin interfaceValueWriter- Overrides:
setBytesin classBaseScalarWriter
-
appendBytes
public final void appendBytes(byte[] value, int len) - Specified by:
appendBytesin interfaceValueWriter- Overrides:
appendBytesin classBaseScalarWriter
-
setString
- Specified by:
setStringin interfaceValueWriter- Overrides:
setStringin classBaseScalarWriter
-
setValue
Description copied from interface:ValueWriterWrite value to a vector as a Java object of the "native" type for the column. This form is available only on scalar writers. The object must be of the form for the primary write method above.Primarily to be used when the code already knows the object type.
- Parameters:
value- a value that matches the primary setter above, or null to set the column to null- See Also:
-
setDefaultValue
Description copied from interface:ScalarWriterSet the default value to be used to fill empties for this writer. Only valid for required writers: null writers set this is-set bit to 0 and set the data value to 0.- Parameters:
value- the value to set. Cannot be null. The type of the value must match that legal forValueWriter.setValue(Object)
-
copy
Description copied from interface:ColumnWriterCopy a single value from the given reader, which must be of the same type as this writer.- Parameters:
from- reader to provide the data
-