Class CassandraOffsetContext

java.lang.Object
io.debezium.connector.cassandra.CassandraOffsetContext
All Implemented Interfaces:
io.debezium.pipeline.spi.OffsetContext

public class CassandraOffsetContext extends Object implements io.debezium.pipeline.spi.OffsetContext
  • Field Details

  • Constructor Details

    • CassandraOffsetContext

      private CassandraOffsetContext(Map<String,Object> offset)
  • Method Details

    • getOffset

      public Map<String,?> getOffset()
      Specified by:
      getOffset in interface io.debezium.pipeline.spi.OffsetContext
    • getSourceInfoSchema

      public org.apache.kafka.connect.data.Schema getSourceInfoSchema()
      Specified by:
      getSourceInfoSchema in interface io.debezium.pipeline.spi.OffsetContext
    • getSourceInfo

      public org.apache.kafka.connect.data.Struct getSourceInfo()
      Specified by:
      getSourceInfo in interface io.debezium.pipeline.spi.OffsetContext
    • isSnapshotRunning

      public boolean isSnapshotRunning()
      Specified by:
      isSnapshotRunning in interface io.debezium.pipeline.spi.OffsetContext
    • markSnapshotRecord

      public void markSnapshotRecord(io.debezium.connector.SnapshotRecord record)
      Specified by:
      markSnapshotRecord in interface io.debezium.pipeline.spi.OffsetContext
    • preSnapshotStart

      public void preSnapshotStart()
      Specified by:
      preSnapshotStart in interface io.debezium.pipeline.spi.OffsetContext
    • preSnapshotCompletion

      public void preSnapshotCompletion()
      Specified by:
      preSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContext
    • postSnapshotCompletion

      public void postSnapshotCompletion()
      Specified by:
      postSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContext
    • event

      public void event(io.debezium.spi.schema.DataCollectionId collectionId, Instant timestamp)
      Specified by:
      event in interface io.debezium.pipeline.spi.OffsetContext
    • getTransactionContext

      public io.debezium.pipeline.txmetadata.TransactionContext getTransactionContext()
      Specified by:
      getTransactionContext in interface io.debezium.pipeline.spi.OffsetContext
    • putOffset

      public void putOffset(String table, boolean isSnapshot, String offsetPosition)
    • getOffset

      public String getOffset(String sourceTable, boolean isSnapshot)
    • key

      private String key(String table, boolean isSnapshot)