Class DecimalBigDecimalConverter
- java.lang.Object
-
- org.apache.flink.table.data.conversion.DecimalBigDecimalConverter
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<DecimalData,BigDecimal>
@Internal public class DecimalBigDecimalConverter extends Object implements DataStructureConverter<DecimalData,BigDecimal>
Converter forDecimalType
ofBigDecimal
external type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
toExternal(DecimalData internal)
Converts to external data structure.DecimalData
toInternal(BigDecimal external)
Converts to internal data structure.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.conversion.DataStructureConverter
isIdentityConversion, open, toExternalOrNull, toInternalOrNull
-
-
-
-
Method Detail
-
toInternal
public DecimalData toInternal(BigDecimal external)
Description copied from interface:DataStructureConverter
Converts to internal data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toInternal
in interfaceDataStructureConverter<DecimalData,BigDecimal>
-
toExternal
public BigDecimal toExternal(DecimalData internal)
Description copied from interface:DataStructureConverter
Converts to external data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toExternal
in interfaceDataStructureConverter<DecimalData,BigDecimal>
-
-