public abstract static class AbstractFixedWidthWriter.BaseIntWriter extends AbstractFixedWidthWriter.BaseFixedWidthWriter
AbstractFixedWidthWriter.BaseFixedWidthWriter, AbstractFixedWidthWriter.BaseIntWriter
AbstractScalarWriterImpl.ScalarObjectWriter
WriterEvents.ColumnWriterListener, WriterEvents.State
lastWriteIndex
capacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZE
schema, vectorIndex
Constructor and Description |
---|
BaseIntWriter() |
Modifier and Type | Method and Description |
---|---|
void |
setBoolean(boolean value) |
void |
setDecimal(BigDecimal value) |
void |
setDouble(double value) |
void |
setFloat(float value) |
void |
setLong(long value) |
void |
setValue(Object value)
Write value to a vector as a Java object of the "native" type for
the column.
|
fillEmpties, prepareWrite, prepareWrite
dump, endWrite, lastWriteIndex, mandatoryResize, postRollover, preRollover, resize, restartRow, setBuffer, setLastWriteIndex, setValueCount, skipNulls, startWrite, width
appendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBytes, setDate, setInt, 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
public final void setBoolean(boolean value)
setBoolean
in interface ValueWriter
setBoolean
in class BaseScalarWriter
public final void setLong(long value)
setLong
in interface ValueWriter
setLong
in class BaseScalarWriter
public final void setFloat(float value)
setFloat
in interface ValueWriter
setFloat
in class BaseScalarWriter
public final void setDouble(double value)
setDouble
in interface ValueWriter
setDouble
in class BaseScalarWriter
public final void setDecimal(BigDecimal value)
setDecimal
in interface ValueWriter
setDecimal
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
Copyright © 1970 The Apache Software Foundation. All rights reserved.