Package io.debezium.relational
Class Selectors.DatabaseSelectionPredicateBuilder
- java.lang.Object
-
- io.debezium.relational.Selectors.DatabaseSelectionPredicateBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<String>
dbExclusions
private Predicate<String>
dbInclusions
-
Constructor Summary
Constructors Constructor Description DatabaseSelectionPredicateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<String>
build()
Build thePredicate
that determines whether a database identified by its name is to be included.Selectors.DatabaseSelectionPredicateBuilder
excludeDatabases(String databaseNames)
Specify the names of the databases that should be excluded.Selectors.DatabaseSelectionPredicateBuilder
includeDatabases(String databaseNames)
Specify the names of the databases that should be included.
-
-
-
Method Detail
-
includeDatabases
public Selectors.DatabaseSelectionPredicateBuilder includeDatabases(String databaseNames)
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
public Selectors.DatabaseSelectionPredicateBuilder excludeDatabases(String databaseNames)
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
public Predicate<String> 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:
includeDatabases(String)
,excludeDatabases(String)
-
-