public abstract static class AbstractFixedWidthWriter.BaseFixedWidthWriter extends AbstractFixedWidthWriter
AbstractFixedWidthWriter.BaseFixedWidthWriter, AbstractFixedWidthWriter.BaseIntWriter
AbstractScalarWriterImpl.ScalarObjectWriter
WriterEvents.ColumnWriterListener, WriterEvents.State
lastWriteIndex
capacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZE
schema, vectorIndex
Constructor and Description |
---|
BaseFixedWidthWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
fillEmpties(int writeIndex)
Fill empties.
|
protected int |
prepareWrite()
Determine the write index, growing, overflowing and back-filling
the vector as needed.
|
protected int |
prepareWrite(int writeIndex) |
dump, endWrite, lastWriteIndex, mandatoryResize, postRollover, preRollover, resize, restartRow, setBuffer, setLastWriteIndex, setValueCount, skipNulls, startWrite, width
appendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBoolean, setBytes, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestamp
bindIndex, endArrayValue, isProjected, rowStartIndex, saveRow, schema, startRow, type, vector, writeIndex
conversionError, extendedType, setObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setDefaultValue, valueType
copy
setValue
protected final int prepareWrite()
This is a bit tricky. This method has side effects, by design.
The current vector buffer, and buffer address, will change in
this method when a vector grows or overflows. So, don't use this
method in inline calls of the form
vector.getBuffer().doSomething(prepareWrite());
The buffer obtained by getBuffer() can be different than
the current buffer after prepareWrite().
protected final int prepareWrite(int writeIndex)
protected final void fillEmpties(int writeIndex)
fillEmpties
in class AbstractFixedWidthWriter
Copyright © 1970 The Apache Software Foundation. All rights reserved.