Class JsonBytesTypeConverter<T>

java.lang.Object
org.gridgain.ignite.migrationtools.adapter.internal.converters.JsonBytesTypeConverter<T>
All Implemented Interfaces:
org.apache.ignite3.table.mapper.TypeConverter<T,byte[]>

public class JsonBytesTypeConverter<T> extends Object implements org.apache.ignite3.table.mapper.TypeConverter<T,byte[]>
  • Constructor Details

    • JsonBytesTypeConverter

      public JsonBytesTypeConverter(Class<T> type)
  • Method Details

    • toColumnType

      public byte[] toColumnType(T obj) throws Exception
      Specified by:
      toColumnType in interface org.apache.ignite3.table.mapper.TypeConverter<T,byte[]>
      Throws:
      Exception
    • toObjectType

      public T toObjectType(byte[] bytes) throws Exception
      Specified by:
      toObjectType in interface org.apache.ignite3.table.mapper.TypeConverter<T,byte[]>
      Throws:
      Exception