Class SchemaHolder


  • public class SchemaHolder
    extends Object
    Listening to schema changes in Cassandra DB and caches the key and value schema for all CDC-enabled tables. This cache gets updated whenever there's a schema change in Cassandra DB
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • kafkaTopicPrefix

        private final String kafkaTopicPrefix
      • sourceInfoStructMaker

        private final io.debezium.connector.SourceInfoStructMaker<SourceInfo> sourceInfoStructMaker
      • schemaChangeListener

        private final com.datastax.driver.core.SchemaChangeListener schemaChangeListener
    • Constructor Detail

      • SchemaHolder

        public SchemaHolder​(CassandraClient cassandraClient,
                            String kafkaTopicPrefix,
                            io.debezium.connector.SourceInfoStructMaker<SourceInfo> sourceInfoStructMaker)
    • Method Detail

      • initialize

        private void initialize()
      • close

        public void close()
      • getCdcEnabledTableMetadataSet

        public Set<com.datastax.driver.core.TableMetadata> getCdcEnabledTableMetadataSet()
      • removeTableSchema

        private void removeTableSchema​(KeyspaceTable kst)