Package io.debezium.data
Class SchemaChangeHistory
java.lang.Object
io.debezium.data.SchemaChangeHistory
A test utility for accumulating the
SourceRecords on the schema change topic.- Author:
- Randall Hauch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(org.apache.kafka.connect.source.SourceRecord record) intList<org.apache.kafka.connect.source.SourceRecord>ddlRecordsForDatabase(String dbName) List<org.apache.kafka.connect.source.SourceRecord>ddlRecordsForDatabaseOrEmpty(String dbName) voidprotected StringgetAffectedDatabase(org.apache.kafka.connect.source.SourceRecord record) int
-
Field Details
-
topicName
-
sourceRecords
-
sourceRecordsByDbName
-
-
Constructor Details
-
SchemaChangeHistory
-
-
Method Details
-
add
public boolean add(org.apache.kafka.connect.source.SourceRecord record) -
recordCount
public int recordCount() -
forEach
-
databaseCount
public int databaseCount() -
databases
-
ddlRecordsForDatabase
-
ddlRecordsForDatabaseOrEmpty
-
getAffectedDatabase
-