public abstract class AbstractConvertFromString extends DirectConverter
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected Function<String,String> |
prepare |
baseWriter
Constructor and Description |
---|
AbstractConvertFromString(ScalarWriter baseWriter) |
AbstractConvertFromString(ScalarWriter baseWriter,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
setBytes(byte[] bytes,
int length) |
void |
setValue(Object value)
Write value to a vector as a Java object of the "native" type for
the column.
|
appendBytes, setBoolean, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestamp
conversionError, schema, writer
public AbstractConvertFromString(ScalarWriter baseWriter)
public AbstractConvertFromString(ScalarWriter baseWriter, Map<String,String> properties)
public void setValue(Object value)
ValueWriter
Primarily to be used when the code already knows the object type.
setValue
in interface ValueWriter
setValue
in class DirectConverter
value
- a value that matches the primary setter above, or null
to set the column to nullfor the generic case
public void setBytes(byte[] bytes, int length)
setBytes
in interface ValueWriter
setBytes
in class DirectConverter
Copyright © 1970 The Apache Software Foundation. All rights reserved.