public abstract static class AbstractFixedWidthWriter.BaseFixedWidthWriter extends AbstractFixedWidthWriter
AbstractFixedWidthWriter.BaseFixedWidthWriter, AbstractFixedWidthWriter.BaseIntWriterAbstractScalarWriterImpl.ScalarObjectWriterWriterEvents.ColumnWriterListener, WriterEvents.StatelastWriteIndexcapacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZEschema, 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, widthappendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBoolean, setBytes, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestampbindIndex, endArrayValue, isProjected, rowStartIndex, saveRow, schema, startRow, type, vector, writeIndexconversionError, extendedType, setObject, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetDefaultValue, valueTypecopysetValueprotected 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 AbstractFixedWidthWriterCopyright © 2021 The Apache Software Foundation. All rights reserved.