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