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
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build thePredicate
that 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 andexcluded
databases.- 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 previouslyexcluded
databases, althoughincluding databases
overrides 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 thePredicate
that determines whether a database identified by its name is to be included.- Returns:
- the table selection predicate; never null
- See Also:
-