public interface ScalarWriter extends ColumnWriter, ValueWriter
Vector values are mapped to their "natural" representations: the representation closest to the actual vector value. For date and time values, this generally means a numeric value. Applications can then map this value to Java objects as desired. Decimal types all map to BigDecimal as that is the only way in Java to represent large decimal values.
In general, a column maps to just one value. However, derived classes may choose to provide type conversions if convenient. An exception is thrown if a call is made to a method that is not supported by the column type.
|Modifier and Type||Method and Description|
The extended type of the value, describes the secondary type for DATE, TIME and TIMESTAMP for which the value type is int or long.
Set the default value to be used to fill empties for this writer.
Describe the type of the value.
copy, isProjected, nullable, schema, setNull, setObject, type
appendBytes, setBoolean, setBytes, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestamp, setValue
void setDefaultValue(Object value)
value- the value to set. Cannot be null. The type of the value must match that legal for
Copyright © 1970 The Apache Software Foundation. All rights reserved.