Class MapMapConverter<K,V>

java.lang.Object
org.apache.flink.table.data.conversion.MapMapConverter<K,V>
All Implemented Interfaces:
Serializable, DataStructureConverter<org.apache.flink.table.data.MapData,Map<K,V>>

@Internal public class MapMapConverter<K,V> extends Object implements DataStructureConverter<org.apache.flink.table.data.MapData,Map<K,V>>
Converter for MapType/MultisetType of Map external type.
See Also:
  • Method Details

    • open

      public void open(ClassLoader classLoader)
      Specified by:
      open in interface DataStructureConverter<K,V>
    • toInternal

      public org.apache.flink.table.data.MapData toInternal(Map<K,V> 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 interface DataStructureConverter<K,V>
    • toExternal

      public Map<K,V> toExternal(org.apache.flink.table.data.MapData 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 interface DataStructureConverter<K,V>
    • createForMapType

      public static MapMapConverter<?,?> createForMapType(org.apache.flink.table.types.DataType dataType)
    • createForMultisetType

      public static MapMapConverter<?,?> createForMultisetType(org.apache.flink.table.types.DataType dataType)