public abstract class AbstractScalarWriter extends Object implements ScalarWriter
Constructor and Description |
---|
AbstractScalarWriter() |
Modifier and Type | Method and Description |
---|---|
void |
bindListener(WriterEvents.ColumnWriterListener listener) |
protected UnsupportedConversionError |
conversionError(String javaType) |
ValueType |
extendedType()
The extended type of the value, describes the secondary type
for DATE, TIME and TIMESTAMP for which the value type is
int or long.
|
void |
setObject(Object value)
Generic technique to write data as a generic Java object.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setDefaultValue, valueType
copy, isProjected, nullable, schema, setNull, type
appendBytes, setBoolean, setBytes, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestamp, setValue
public ValueType extendedType()
ScalarWriter
extendedType
in interface ScalarWriter
public void setObject(Object value)
ColumnWriter
setObject
in interface ColumnWriter
value
- value to write to the vector. The Java type of the
object indicates the Drill storage typeprotected UnsupportedConversionError conversionError(String javaType)
public void bindListener(WriterEvents.ColumnWriterListener listener)
Copyright © 1970 The Apache Software Foundation. All rights reserved.