| Modifier and Type | Field and Description |
|---|---|
private AtomicLong |
EMPTY |
private EnumMap<io.debezium.data.Envelope.Operation,AtomicLong> |
statsByOperation |
private AtomicLong |
tombstones |
| Constructor and Description |
|---|
SourceRecordStats()
Create a new statistics object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.apache.kafka.connect.source.SourceRecord record) |
long |
numberOf(io.debezium.data.Envelope.Operation op)
Get the number of
added records that had the given Envelope.Operation. |
long |
numberOfCreates()
Get the number of
CREATE records that were added to this object. |
long |
numberOfDeletes()
Get the number of
DELETE records that were added to this object. |
long |
numberOfReads()
Get the number of
READ records that were added to this object. |
long |
numberOfTombstones()
Get the number of tombstone records that were
added to this object. |
long |
numberOfUpdates()
Get the number of
UPDATE records that were added to this object. |
SourceRecordStats |
reset()
Reset all of the counters to 0.
|
String |
toString() |
private final AtomicLong EMPTY
private final EnumMap<io.debezium.data.Envelope.Operation,AtomicLong> statsByOperation
private final AtomicLong tombstones
public void accept(org.apache.kafka.connect.source.SourceRecord record)
public long numberOf(io.debezium.data.Envelope.Operation op)
added records that had the given Envelope.Operation.op - the operation for which the record count is to be returnedpublic long numberOfCreates()
CREATE records that were added to this object.public long numberOfDeletes()
DELETE records that were added to this object.public long numberOfReads()
READ records that were added to this object.public long numberOfUpdates()
UPDATE records that were added to this object.public long numberOfTombstones()
added to this object.public SourceRecordStats reset()
Copyright © 2021 JBoss by Red Hat. All rights reserved.