Class PythonTypeUtils.ShortDataConverter
- java.lang.Object
-
- org.apache.flink.streaming.api.utils.PythonTypeUtils.DataConverter<Short,Long>
-
- org.apache.flink.streaming.api.utils.PythonTypeUtils.ShortDataConverter
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PythonTypeUtils
public static final class PythonTypeUtils.ShortDataConverter extends PythonTypeUtils.DataConverter<Short,Long>
Python Long will be converted to Long in PemJa, so we need ShortDataConverter to convert Java Long to internal Short.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PythonTypeUtils.ShortDataConverterINSTANCE
-
Constructor Summary
Constructors Constructor Description ShortDataConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongtoExternal(Short value)ShorttoInternal(Long value)
-
-
-
Field Detail
-
INSTANCE
public static final PythonTypeUtils.ShortDataConverter INSTANCE
-
-
Method Detail
-
toInternal
public Short toInternal(Long value)
- Specified by:
toInternalin classPythonTypeUtils.DataConverter<Short,Long>
-
toExternal
public Long toExternal(Short value)
- Specified by:
toExternalin classPythonTypeUtils.DataConverter<Short,Long>
-
-