Class AbstractConvertFromString
java.lang.Object
org.apache.drill.exec.physical.impl.scan.convert.ColumnConverter
org.apache.drill.exec.physical.impl.scan.convert.DirectConverter
org.apache.drill.exec.physical.impl.scan.convert.AbstractConvertFromString
- All Implemented Interfaces:
ValueWriter
- Direct Known Subclasses:
ConvertStringToBoolean
,ConvertStringToDate
,ConvertStringToDecimal
,ConvertStringToDouble
,ConvertStringToInt
,ConvertStringToInterval
,ConvertStringToLong
,ConvertStringToTime
,ConvertStringToTimeStamp
Abstract class for string-to-something conversions. Handles the
multiple ways that strings can be set.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
Fields inherited from class org.apache.drill.exec.physical.impl.scan.convert.ColumnConverter
baseWriter
-
Constructor Summary
ConstructorDescriptionAbstractConvertFromString
(ScalarWriter baseWriter) AbstractConvertFromString
(ScalarWriter baseWriter, Map<String, String> properties) -
Method Summary
Methods inherited from class org.apache.drill.exec.physical.impl.scan.convert.DirectConverter
appendBytes, setBoolean, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setString, setTime, setTimestamp
Methods inherited from class org.apache.drill.exec.physical.impl.scan.convert.ColumnConverter
conversionError, schema, writer
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
prepare
-
-
Constructor Details
-
AbstractConvertFromString
-
AbstractConvertFromString
-
-
Method Details
-
setValue
Description copied from interface:ValueWriter
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.
- Specified by:
setValue
in interfaceValueWriter
- Overrides:
setValue
in classDirectConverter
- Parameters:
value
- a value that matches the primary setter above, or null to set the column to null- See Also:
-
setBytes
public void setBytes(byte[] bytes, int length) - Specified by:
setBytes
in interfaceValueWriter
- Overrides:
setBytes
in classDirectConverter
-