Class StructuredObjectConverter<T>
- java.lang.Object
-
- org.apache.flink.table.data.conversion.StructuredObjectConverter<T>
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<org.apache.flink.table.data.RowData,T>
@Internal public class StructuredObjectConverter<T> extends Object implements DataStructureConverter<org.apache.flink.table.data.RowData,T>
Converter forStructuredType
of its implementation class.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StructuredObjectConverter<?>
create(org.apache.flink.table.types.DataType dataType)
void
open(ClassLoader classLoader)
T
toExternal(org.apache.flink.table.data.RowData internal)
Converts to external data structure.org.apache.flink.table.data.RowData
toInternal(T 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, toExternalOrNull, toInternalOrNull
-
-
-
-
Method Detail
-
open
public void open(ClassLoader classLoader)
- Specified by:
open
in interfaceDataStructureConverter<org.apache.flink.table.data.RowData,T>
-
toInternal
public org.apache.flink.table.data.RowData toInternal(T 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<org.apache.flink.table.data.RowData,T>
-
toExternal
public T toExternal(org.apache.flink.table.data.RowData 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<org.apache.flink.table.data.RowData,T>
-
create
public static StructuredObjectConverter<?> create(org.apache.flink.table.types.DataType dataType)
-
-