Class NeverSnapshotter

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • NeverSnapshotter

        public NeverSnapshotter()
    • Method Detail

      • shouldStream

        public boolean shouldStream()
        Specified by:
        shouldStream in interface Snapshotter
        Returns:
        true if the snapshotter should stream after taking a snapshot
      • shouldSnapshot

        public boolean shouldSnapshot()
        Specified by:
        shouldSnapshot in interface Snapshotter
        Returns:
        true if the snapshotter should take a snapshot
      • buildSnapshotQuery

        public Optional<String> buildSnapshotQuery​(TableId tableId,
                                                   List<String> snapshotSelectColumns)
        Description copied from interface: Snapshotter
        Generate a valid postgres query string for the specified table, or an empty Optional to skip snapshotting this table (but that table will still be streamed from)
        Specified by:
        buildSnapshotQuery in interface Snapshotter
        Parameters:
        tableId - the table to generate a query for
        snapshotSelectColumns - the columns to be used in the snapshot select based on the column include/exclude filters
        Returns:
        a valid query string, or none to skip snapshotting this table