Class ConvertStringToDecimal
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
org.apache.drill.exec.physical.impl.scan.convert.ConvertStringToDecimal
- All Implemented Interfaces:
ValueWriter
Convert a VARCHAR column to an decimal column following the Java rules
for parsing integers (i.e. no formatting.) This conversion works
for any decimal type: the modern VARDECIMAL or the deprecated
DECIMAL9, DECIMAL18, etc. types.
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.scan.convert.AbstractConvertFromString
logger, prepare
Fields inherited from class org.apache.drill.exec.physical.impl.scan.convert.ColumnConverter
baseWriter
-
Constructor Summary
ConstructorDescriptionConvertStringToDecimal
(ScalarWriter baseWriter, Map<String, String> properties) -
Method Summary
Methods inherited from class org.apache.drill.exec.physical.impl.scan.convert.AbstractConvertFromString
setBytes, setValue
Methods inherited from class org.apache.drill.exec.physical.impl.scan.convert.DirectConverter
appendBytes, setBoolean, setDate, setDecimal, setDouble, setFloat, setInt, setLong, setNull, setPeriod, setTime, setTimestamp
Methods inherited from class org.apache.drill.exec.physical.impl.scan.convert.ColumnConverter
conversionError, schema, writer
-
Constructor Details
-
ConvertStringToDecimal
-
-
Method Details
-
setString
- Specified by:
setString
in interfaceValueWriter
- Overrides:
setString
in classDirectConverter
-