Interface ValueWriter
- All Known Subinterfaces:
OffsetVectorWriter
,ScalarWriter
- All Known Implementing Classes:
AbstractConvertFromString
,AbstractFixedWidthWriter
,AbstractFixedWidthWriter.BaseFixedWidthWriter
,AbstractFixedWidthWriter.BaseIntWriter
,AbstractScalarWriter
,AbstractScalarWriterImpl
,BaseScalarWriter
,BaseVarWidthWriter
,BitColumnWriter
,ColumnAccessors.BigIntColumnWriter
,ColumnAccessors.DateColumnWriter
,ColumnAccessors.Decimal18ColumnWriter
,ColumnAccessors.Decimal28SparseColumnWriter
,ColumnAccessors.Decimal38SparseColumnWriter
,ColumnAccessors.Decimal9ColumnWriter
,ColumnAccessors.Float4ColumnWriter
,ColumnAccessors.Float8ColumnWriter
,ColumnAccessors.IntColumnWriter
,ColumnAccessors.IntervalColumnWriter
,ColumnAccessors.IntervalDayColumnWriter
,ColumnAccessors.IntervalYearColumnWriter
,ColumnAccessors.SmallIntColumnWriter
,ColumnAccessors.TimeColumnWriter
,ColumnAccessors.TimeStampColumnWriter
,ColumnAccessors.TinyIntColumnWriter
,ColumnAccessors.UInt1ColumnWriter
,ColumnAccessors.UInt2ColumnWriter
,ColumnAccessors.UInt4ColumnWriter
,ColumnAccessors.UInt8ColumnWriter
,ColumnAccessors.Var16CharColumnWriter
,ColumnAccessors.VarBinaryColumnWriter
,ColumnAccessors.VarCharColumnWriter
,ColumnAccessors.VarDecimalColumnWriter
,ConvertBooleanToString
,ConvertDateToString
,ConvertDecimalToString
,ConvertDoubleToDecimal
,ConvertDoubleToString
,ConvertFloatToDecimal
,ConvertIntervalToString
,ConvertIntToDecimal
,ConvertIntToString
,ConvertLongToDecimal
,ConvertLongToString
,ConvertStringToBoolean
,ConvertStringToDate
,ConvertStringToDecimal
,ConvertStringToDouble
,ConvertStringToInt
,ConvertStringToInterval
,ConvertStringToLong
,ConvertStringToTime
,ConvertStringToTimeStamp
,ConvertTimeStampToString
,ConvertTimeToString
,DirectConverter
,DummyArrayWriter.DummyOffsetVectorWriter
,DummyScalarWriter
,NullableScalarWriter
,OffsetVectorWriterImpl
public interface ValueWriter
Writer for a scalar value. Column writers implement this interface
to map values directly to the underlying vector types, throwing an
exception for type mis-matches. Format-specific column converters
can implement this interface to perform type conversion. Since
both format-specific and generic writers share the same interface
they can be used interchangeably, avoiding an extra call level when
no conversion is needed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendBytes
(byte[] value, int len) void
setBoolean
(boolean value) void
setBytes
(byte[] value, int len) void
void
setDecimal
(BigDecimal value) void
setDouble
(double value) void
setFloat
(float value) void
setInt
(int value) void
setLong
(long value) void
setNull()
Set the current value to null.void
setPeriod
(org.joda.time.Period value) void
void
void
setTimestamp
(Instant value) void
Write value to a vector as a Java object of the "native" type for the column.
-
Method Details
-
setNull
void setNull()Set the current value to null. throws IllegalStateException if called on a non-nullable value. -
setBoolean
void setBoolean(boolean value) -
setInt
void setInt(int value) -
setLong
void setLong(long value) -
setFloat
void setFloat(float value) -
setDouble
void setDouble(double value) -
setString
-
appendBytes
void appendBytes(byte[] value, int len) -
setBytes
void setBytes(byte[] value, int len) -
setDecimal
-
setPeriod
void setPeriod(org.joda.time.Period value) -
setDate
-
setTime
-
setTimestamp
-
setValue
Write 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:
-