Package io.debezium.data
Class KeyValueStore.Collection
java.lang.Object
io.debezium.data.KeyValueStore.Collection
- Enclosing class:
- KeyValueStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.debezium.relational.TableIdprivate org.apache.kafka.connect.data.Schemaprivate final List<org.apache.kafka.connect.data.Schema>private final SourceRecordStatsprivate final Map<org.apache.kafka.connect.data.Struct,org.apache.kafka.connect.source.SourceRecord> private org.apache.kafka.connect.data.Schemaprivate final List<org.apache.kafka.connect.data.Schema> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(org.apache.kafka.connect.source.SourceRecord record) voidintlongGet the number ofCREATErecordsaddedto this collection.longGet the number ofDELETErecordsaddedto this collection.longGet the number of changes to the key schema for events in this collection.longGet the number ofREADrecordsaddedto this collection.longGet the number of tombstone records that wereaddedto this collection.longGet the number ofUPDATErecordsaddedto this collection.longGet 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) int
-
Field Details
-
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
-
valueSchemas
-
valuesByKey
private final Map<org.apache.kafka.connect.data.Struct,org.apache.kafka.connect.source.SourceRecord> valuesByKey -
stats
-
-
Constructor Details
-
Collection
protected Collection(io.debezium.relational.TableId id)
-
-
Method Details
-
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
-
add
protected void add(org.apache.kafka.connect.source.SourceRecord record)
-