Package io.debezium.data
Class KeyValueStore.Collection
- java.lang.Object
-
- io.debezium.data.KeyValueStore.Collection
-
- Enclosing class:
- KeyValueStore
public static class KeyValueStore.Collection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.relational.TableIdidprivate org.apache.kafka.connect.data.SchemakeySchemaprivate List<org.apache.kafka.connect.data.Schema>keySchemasprivate SourceRecordStatsstatsprivate Map<org.apache.kafka.connect.data.Struct,org.apache.kafka.connect.source.SourceRecord>valuesByKeyprivate org.apache.kafka.connect.data.SchemavalueSchemaprivate List<org.apache.kafka.connect.data.Schema>valueSchemas
-
Constructor Summary
Constructors Modifier Constructor Description protectedCollection(io.debezium.relational.TableId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(org.apache.kafka.connect.source.SourceRecord record)voidforEach(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)intkeySchemaChanges()longnumberOfCreates()Get the number ofCREATErecordsaddedto this collection.longnumberOfDeletes()Get the number ofDELETErecordsaddedto this collection.longnumberOfKeySchemaChanges()Get the number of changes to the key schema for events in this collection.longnumberOfReads()Get the number ofREADrecordsaddedto this collection.longnumberOfTombstones()Get the number of tombstone records that wereaddedto this collection.longnumberOfUpdates()Get the number ofUPDATErecordsaddedto this collection.longnumberOfValueSchemaChanges()Get the number of changes to the key schema for events in this collection.intsize()io.debezium.relational.TableIdtableId()org.apache.kafka.connect.data.Structvalue(org.apache.kafka.connect.data.Struct key)intvalueSchemaChanges()
-
-
-
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
-
stats
private final SourceRecordStats stats
-
-
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 ofCREATErecordsaddedto this collection.- Returns:
- the count; never negative
-
numberOfDeletes
public long numberOfDeletes()
Get the number ofDELETErecordsaddedto this collection.- Returns:
- the count; never negative
-
numberOfReads
public long numberOfReads()
Get the number ofREADrecordsaddedto this collection.- Returns:
- the count; never negative
-
numberOfUpdates
public long numberOfUpdates()
Get the number ofUPDATErecordsaddedto this collection.- Returns:
- the count; never negative
-
numberOfTombstones
public long numberOfTombstones()
Get the number of tombstone records that wereaddedto 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)
-
-