Class KeyValueStore.Collection

    • Field Detail

      • id

        private final io.debezium.relational.TableId id
      • keySchema

        private org.apache.kafka.connect.data.Schema keySchema
      • valueSchema

        private org.apache.kafka.connect.data.Schema valueSchema
      • keySchemas

        private final List<org.apache.kafka.connect.data.Schema> keySchemas
      • valueSchemas

        private final List<org.apache.kafka.connect.data.Schema> valueSchemas
      • valuesByKey

        private final Map<org.apache.kafka.connect.data.Struct,​org.apache.kafka.connect.source.SourceRecord> valuesByKey
    • Constructor Detail

      • Collection

        protected Collection​(io.debezium.relational.TableId id)
    • Method Detail

      • tableId

        public io.debezium.relational.TableId tableId()
      • numberOfKeySchemaChanges

        public long numberOfKeySchemaChanges()
        Get the number of changes to the key schema for events in this collection.
        Returns:
        the count; never negative
      • numberOfValueSchemaChanges

        public long numberOfValueSchemaChanges()
        Get the number of changes to the key schema for events in this collection.
        Returns:
        the count; never negative
      • numberOfCreates

        public long numberOfCreates()
        Get the number of CREATE records added to this collection.
        Returns:
        the count; never negative
      • numberOfDeletes

        public long numberOfDeletes()
        Get the number of DELETE records added to this collection.
        Returns:
        the count; never negative
      • numberOfReads

        public long numberOfReads()
        Get the number of READ records added to this collection.
        Returns:
        the count; never negative
      • numberOfUpdates

        public long numberOfUpdates()
        Get the number of UPDATE records added to this collection.
        Returns:
        the count; never negative
      • numberOfTombstones

        public long numberOfTombstones()
        Get the number of tombstone records that were added to this collection.
        Returns:
        the count; never negative
      • size

        public int size()
      • keySchemaChanges

        public int keySchemaChanges()
      • valueSchemaChanges

        public int valueSchemaChanges()
      • value

        public org.apache.kafka.connect.data.Struct value​(org.apache.kafka.connect.data.Struct key)
      • forEach

        public void forEach​(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)
      • add

        protected void add​(org.apache.kafka.connect.source.SourceRecord record)