| Package | Description |
|---|---|
| io.debezium.connector.mongodb |
| Modifier and Type | Field and Description |
|---|---|
private CollectionId |
SourceInfo.collectionId
Id of collection the current event applies to.
|
private CollectionId |
RecordMakers.RecordsForCollection.collectionId |
| Modifier and Type | Field and Description |
|---|---|
private Predicate<CollectionId> |
Filters.collectionFilter |
private Map<CollectionId,RecordMakers.RecordsForCollection> |
RecordMakers.recordMakerByCollectionId |
private TopicSelector<CollectionId> |
RecordMakers.topicSelector |
private TopicSelector<CollectionId> |
MongoDbTaskContext.topicSelector |
| Modifier and Type | Method and Description |
|---|---|
(package private) CollectionId |
SourceInfo.collectionId() |
CollectionId |
RecordMakers.RecordsForCollection.collectionId()
Get the identifier of the collection to which this producer applies.
|
static CollectionId |
CollectionId.parse(String replicaSetName,
String str)
Parse the supplied
<database_name>.<collection_name> string. |
| Modifier and Type | Method and Description |
|---|---|
Predicate<CollectionId> |
Filters.collectionFilter()
Get the predicate function that determines whether the given collection is to be included.
|
List<CollectionId> |
ConnectionContext.MongoPrimary.collections()
Use the primary to get the identifiers of all the collections in the replica set, applying the current
collection filter configuration.
|
static TopicSelector<CollectionId> |
MongoDbTopicSelector.defaultSelector(String prefix,
String heartbeatPrefix)
Gets the selector for topics for a given prefix, database name, and collection name.
|
TopicSelector<CollectionId> |
MongoDbTaskContext.topicSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
SourceInfo.collectionEvent(String replicaSetName,
CollectionId collectionId)
|
protected long |
Replicator.copyCollection(CollectionId collectionId,
Instant timestamp)
Copy the collection, sending to the recorder a record for each document.
|
protected long |
Replicator.copyCollection(com.mongodb.MongoClient primary,
CollectionId collectionId,
Instant timestamp)
Copy the collection, sending to the recorder a record for each document.
|
FieldSelector.FieldFilter |
Filters.fieldFilterFor(CollectionId id)
Get the field filter for a given collection identifier.
|
FieldSelector.FieldFilter |
FieldSelector.fieldFilterFor(CollectionId id)
Returns the field filter for the given collection identifier.
|
RecordMakers.RecordsForCollection |
RecordMakers.forCollection(CollectionId collectionId)
Obtain the record maker for the given table, using the specified columns and sending records to the given consumer.
|
private static String |
MongoDbTopicSelector.getTopicName(CollectionId collectionId,
String prefix,
String delimiter)
Get the name of the topic for a given prefix, database name, and collection name.
|
protected boolean |
Filters.isNotBuiltIn(CollectionId id) |
private void |
SourceInfo.onEvent(String replicaSetName,
CollectionId collectionId,
SourceInfo.Position position) |
int |
RecordMakers.RecordsForCollection.recordObject(CollectionId id,
org.bson.Document object,
Instant timestamp)
Generate and record one or more source records to describe the given object.
|
| Constructor and Description |
|---|
RecordsForCollection(CollectionId collectionId,
FieldSelector.FieldFilter fieldFilter,
SourceInfo source,
String topicName,
SchemaNameAdjuster adjuster,
Function<org.bson.Document,String> valueTransformer,
BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> recorder,
boolean emitTombstonesOnDelete) |
| Constructor and Description |
|---|
RecordMakers(Filters filters,
SourceInfo source,
TopicSelector<CollectionId> topicSelector,
BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> recorder,
boolean emitTombstonesOnDelete)
Create the record makers using the supplied components.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.