Class IdentityConverter<I>
- java.lang.Object
-
- org.apache.flink.table.data.conversion.IdentityConverter<I>
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<I,I>
@Internal public class IdentityConverter<I> extends Object implements DataStructureConverter<I,I>
No-op converter that just forwards its input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isIdentityConversion()
Returns whether this conversion is a no-op.I
toExternal(I internal)
Converts to external data structure.I
toInternal(I 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
open, toExternalOrNull, toInternalOrNull
-
-
-
-
Method Detail
-
toInternal
public I toInternal(I 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<I,I>
-
toExternal
public I toExternal(I 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<I,I>
-
isIdentityConversion
public boolean isIdentityConversion()
Description copied from interface:DataStructureConverter
Returns whether this conversion is a no-op.An identity conversion means that the type is already an internal data structure.
- Specified by:
isIdentityConversion
in interfaceDataStructureConverter<I,I>
-
-