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 booleanisIdentityConversion()Returns whether this conversion is a no-op.ItoExternal(I internal)Converts to external data structure.ItoInternal(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:DataStructureConverterConverts to internal data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toInternalin interfaceDataStructureConverter<I,I>
-
toExternal
public I toExternal(I internal)
Description copied from interface:DataStructureConverterConverts to external data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toExternalin interfaceDataStructureConverter<I,I>
-
isIdentityConversion
public boolean isIdentityConversion()
Description copied from interface:DataStructureConverterReturns whether this conversion is a no-op.An identity conversion means that the type is already an internal data structure.
- Specified by:
isIdentityConversionin interfaceDataStructureConverter<I,I>
-
-