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 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

      void setString(String value)
    • appendBytes

      void appendBytes(byte[] value, int len)
    • setBytes

      void setBytes(byte[] value, int len)
    • setDecimal

      void setDecimal(BigDecimal value)
    • setPeriod

      void setPeriod(org.joda.time.Period value)
    • setDate

      void setDate(LocalDate value)
    • setTime

      void setTime(LocalTime value)
    • setTimestamp

      void setTimestamp(Instant value)
    • setValue

      void setValue(Object value)
      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: