AsterDataField is an abstract class that represents a data field. Its subclasses, which hold values of specific data types, are:
- LongDataField
- ShortDataField
- FloatDataField
- CharDataField
- ByteDataField
- BigDecimalDataField
- StringDataField
Methods
Method | Description |
---|---|
isNull() | Takes an Aster String value and returns a Spark Boolean value—'true' if the String represents NULL and 'false' otherwise. |
toDouble() | Takes an Aster String value and returns the equivalent Spark Double value. |
toBigDecimal() | Takes an Aster String value and returns the equivalent Spark BigDecimal value. |
toFloat() | Takes an Aster String value and returns the equivalent Spark Float value. |
toInt() | Takes an Aster String value and returns the equivalent Spark Int value. |
toShort() | Takes an Aster String value and returns the equivalent Spark Short value. |
toString() | Takes an Aster String value and returns the equivalent Spark String value. |