Package io.debezium.embedded
Class AbstractConnectorTest.SourceRecords
java.lang.Object
io.debezium.embedded.AbstractConnectorTest.SourceRecords
- Enclosing class:
- AbstractConnectorTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<org.apache.kafka.connect.source.SourceRecord> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.kafka.connect.source.SourceRecord record) List<org.apache.kafka.connect.source.SourceRecord>Get the names of the databases that were affected by the DDL statements.List<org.apache.kafka.connect.source.SourceRecord>ddlRecordsForDatabase(String dbName) Get the DDL events for the named database.voidvoidforEachInTopic(String topic, Consumer<org.apache.kafka.connect.source.SourceRecord> consumer) protected StringgetAffectedDatabase(org.apache.kafka.connect.source.SourceRecord record) voidprint()List<org.apache.kafka.connect.source.SourceRecord>recordsForTopic(String topicName) Get the records on the given topic.topics()Get the set of topics for which records were received.
-
Field Details
-
records
-
recordsByTopic
-
ddlRecordsByDbName
-
-
Constructor Details
-
SourceRecords
protected SourceRecords()
-
-
Method Details
-
add
public void add(org.apache.kafka.connect.source.SourceRecord record) -
getAffectedDatabase
-
ddlRecordsForDatabase
Get the DDL events for the named database.- Parameters:
dbName- the name of the database; may not be null- Returns:
- the DDL-related events; never null but possibly empty
-
databaseNames
Get the names of the databases that were affected by the DDL statements.- Returns:
- the set of database names; never null but possibly empty
-
recordsForTopic
Get the records on the given topic.- Parameters:
topicName- the name of the topic.- Returns:
- the records for the topic; possibly null if there were no records produced on the topic
-
topics
Get the set of topics for which records were received.- Returns:
- the names of the topics; never null
-
forEachInTopic
-
forEach
-
allRecordsInOrder
-
print
public void print()
-