protected class AbstractConnectorTest.SourceRecords extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,List<org.apache.kafka.connect.source.SourceRecord>> |
ddlRecordsByDbName |
private List<org.apache.kafka.connect.source.SourceRecord> |
records |
private Map<String,List<org.apache.kafka.connect.source.SourceRecord>> |
recordsByTopic |
| Modifier | Constructor and Description |
|---|---|
protected |
SourceRecords() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.kafka.connect.source.SourceRecord record) |
List<org.apache.kafka.connect.source.SourceRecord> |
allRecordsInOrder() |
Set<String> |
databaseNames()
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.
|
void |
forEach(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer) |
void |
forEachInTopic(String topic,
Consumer<org.apache.kafka.connect.source.SourceRecord> consumer) |
protected String |
getAffectedDatabase(org.apache.kafka.connect.source.SourceRecord record) |
void |
print() |
List<org.apache.kafka.connect.source.SourceRecord> |
recordsForTopic(String topicName)
Get the records on the given topic.
|
Set<String> |
topics()
Get the set of topics for which records were received.
|
private final List<org.apache.kafka.connect.source.SourceRecord> records
private final Map<String,List<org.apache.kafka.connect.source.SourceRecord>> recordsByTopic
public void add(org.apache.kafka.connect.source.SourceRecord record)
protected String getAffectedDatabase(org.apache.kafka.connect.source.SourceRecord record)
public List<org.apache.kafka.connect.source.SourceRecord> ddlRecordsForDatabase(String dbName)
dbName - the name of the database; may not be nullpublic Set<String> databaseNames()
public List<org.apache.kafka.connect.source.SourceRecord> recordsForTopic(String topicName)
topicName - the name of the topic.public Set<String> topics()
public void forEachInTopic(String topic, Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)
public void forEach(Consumer<org.apache.kafka.connect.source.SourceRecord> consumer)
public List<org.apache.kafka.connect.source.SourceRecord> allRecordsInOrder()
public void print()
Copyright © 2017 JBoss by Red Hat. All rights reserved.