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, setTimestampconversionError, schema, writerpublic AbstractConvertFromString(ScalarWriter baseWriter)
public AbstractConvertFromString(ScalarWriter baseWriter, Map<String,String> properties)
public void setValue(Object value)
ValueWriterPrimarily to be used when the code already knows the object type.
setValue in interface ValueWritersetValue in class DirectConvertervalue - a value that matches the primary setter above, or null
to set the column to nullfor the generic casepublic void setBytes(byte[] bytes,
int length)
setBytes in interface ValueWritersetBytes in class DirectConverterCopyright © 2021 The Apache Software Foundation. All rights reserved.