Class SqlServerChangeTable


  • public class SqlServerChangeTable
    extends ChangeTable
    A logical representation of change table containing changes for a given source table. There is usually one change table for each source table. When the schema of the source table is changed then two change tables could be present.
    Author:
    Jiri Pechanec
    • Field Detail

      • startLsn

        private final Lsn startLsn
        A LSN from which the data in the change table are relevant
      • stopLsn

        private Lsn stopLsn
        A LSN to which the data in the change table are relevant
      • capturedColumns

        @Immutable
        private final List<String> capturedColumns
        List of columns captured by the CDC table.
    • Constructor Detail

      • SqlServerChangeTable

        public SqlServerChangeTable​(TableId sourceTableId,
                                    String captureInstance,
                                    int changeTableObjectId,
                                    Lsn startLsn,
                                    Lsn stopLsn,
                                    List<String> capturedColumns)
      • SqlServerChangeTable

        public SqlServerChangeTable​(String captureInstance,
                                    int changeTableObjectId,
                                    Lsn startLsn,
                                    Lsn stopLsn)
    • Method Detail

      • getStartLsn

        public Lsn getStartLsn()
      • getStopLsn

        public Lsn getStopLsn()
      • setStopLsn

        public void setStopLsn​(Lsn stopLsn)
      • getCapturedColumns

        public List<String> getCapturedColumns()
      • resolveChangeTableId

        private static TableId resolveChangeTableId​(TableId sourceTableId,
                                                    String captureInstance)