Package io.debezium.connector.mongodb
Class Filters
java.lang.Object
io.debezium.connector.mongodb.Filters
A utility that is contains various filters for acceptable database names,
CollectionIds, and fields.- Author:
- Randall Hauch
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<CollectionId>private final Filters.FilterConfigprivate final FieldSelector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the predicate function that determines whether the given collection is to be included.private Predicate<CollectionId>private FieldSelectorGet the predicate function that determines whether the given database is to be included.private <T> Predicate<T>Get the field filter for a given collection identifier.private <T> Predicate<T>private boolean
-
Field Details
-
config
-
databaseFilter
-
collectionFilter
-
fieldSelector
-
-
Constructor Details
-
Filters
Create an instance of the filters.- Parameters:
configuration- the configuration; may not be null
-
-
Method Details
-
createDatabaseFilter
-
createCollectionFilter
-
createFieldSelector
-
databaseFilter
Get the predicate function that determines whether the given database is to be included.- Returns:
- the database filter; never null
-
collectionFilter
Get the predicate function that determines whether the given collection is to be included.- Returns:
- the collection filter; never null
-
fieldFilterFor
Get the field filter for a given collection identifier.- Parameters:
id- the collection identifier, never null- Returns:
- the field filter; never null
-
isNotBuiltIn
-
includes
-
excludes
-
getConfig
-