Package io.debezium.relational
Class Selectors.DatabaseSelectionPredicateBuilder
java.lang.Object
io.debezium.relational.Selectors.DatabaseSelectionPredicateBuilder
- Enclosing class:
- Selectors
A builder of a database predicate.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build thePredicatethat determines whether a database identified by its name is to be included.excludeDatabases(String databaseNames) Specify the names of the databases that should be excluded.includeDatabases(String databaseNames) Specify the names of the databases that should be included.
-
Field Details
-
dbInclusions
-
dbExclusions
-
-
Constructor Details
-
DatabaseSelectionPredicateBuilder
public DatabaseSelectionPredicateBuilder()
-
-
Method Details
-
includeDatabases
Specify the names of the databases that should be included. This method will override previously included andexcludeddatabases.- Parameters:
databaseNames- the comma-separated list of database names to include; may be null or empty- Returns:
- this builder so that methods can be chained together; never null
-
excludeDatabases
Specify the names of the databases that should be excluded. This method will override previouslyexcludeddatabases, althoughincluding databasesoverrides exclusions.- Parameters:
databaseNames- the comma-separated list of database names to exclude; may be null or empty- Returns:
- this builder so that methods can be chained together; never null
-
build
Build thePredicatethat determines whether a database identified by its name is to be included.- Returns:
- the table selection predicate; never null
- See Also:
-