Class ConversionServiceImpl

java.lang.Object
com.gridgain.cdc.gg9togg8.ConversionServiceImpl
All Implemented Interfaces:
ConversionService

public class ConversionServiceImpl extends Object implements ConversionService
Service for converting GG9 tuples to GG8 compatible objects.
  • Constructor Details

    • ConversionServiceImpl

      public ConversionServiceImpl(Gg8TableMetadata gg8TabMeta, Gg9TableMetadata gg9TabMeta, org.apache.ignite.IgniteBinary igniteBinary)
      Ctor.
      Parameters:
      gg8TabMeta - GridGain 8 table metadata.
      gg9TabMeta - GridGain 9 table metadata.
      igniteBinary - GridGain 8 binary API.
  • Method Details

    • convertKeyTuple

      @Nullable public @Nullable Object convertKeyTuple(org.apache.ignite.table.Tuple tuple)
      Description copied from interface: ConversionService
      Converts input key tuple to object compatible with GG8 requirements.
      Specified by:
      convertKeyTuple in interface ConversionService
      Parameters:
      tuple - GG9 tuple.
      Returns:
      Converted tuple. In case of complex (more than one field) types return binary object, simple object otherwise.
    • convertValTuple

      @Nullable public @Nullable Object convertValTuple(org.apache.ignite.table.Tuple tuple)
      Description copied from interface: ConversionService
      Converts input value tuple to object compatible with GG8 requirements.
      Specified by:
      convertValTuple in interface ConversionService
      Parameters:
      tuple - GG9 tuple.
      Returns:
      Converted tuple. In case of complex (more than one field) types return binary object, simple object otherwise.