public static class ColumnAccessors.Float8ColumnWriter 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 |
---|
Float8ColumnWriter(ValueVector vector) |
Modifier and Type | Method and Description |
---|---|
void |
copy(ColumnReader from)
Copy a single value from the given reader, which must be of the
same type as this writer.
|
void |
setDecimal(BigDecimal value) |
void |
setDefaultValue(Object value)
Set the default value to be used to fill empties for this writer.
|
void |
setDouble(double value) |
void |
setFloat(float value) |
void |
setInt(int 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.
|
ValueType |
valueType()
Describe the type of the value.
|
BaseDataValueVector |
vector() |
int |
width() |
void |
writeDouble(DrillBuf buf,
double value) |
fillEmpties, prepareWrite, prepareWrite
dump, endWrite, lastWriteIndex, mandatoryResize, postRollover, preRollover, resize, restartRow, setBuffer, setLastWriteIndex, setValueCount, skipNulls, startWrite
appendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBoolean, setBytes, setDate, setNull, setPeriod, setString, setTime, setTimestamp
bindIndex, endArrayValue, isProjected, rowStartIndex, saveRow, schema, startRow, type, writeIndex
conversionError, extendedType, setObject, toString
public Float8ColumnWriter(ValueVector vector)
public BaseDataValueVector vector()
vector
in class AbstractScalarWriterImpl
public int width()
width
in class AbstractFixedWidthWriter
public ValueType valueType()
ScalarWriter
public final void setDouble(double value)
setDouble
in interface ValueWriter
setDouble
in class BaseScalarWriter
public final void writeDouble(DrillBuf buf, double value)
public final void setInt(int value)
setInt
in interface ValueWriter
setInt
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 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
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.