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 Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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