Class Selectors.DatabaseSelectionPredicateBuilder

java.lang.Object
io.debezium.relational.Selectors.DatabaseSelectionPredicateBuilder
Enclosing class:
Selectors

public static class Selectors.DatabaseSelectionPredicateBuilder extends Object
A builder of a database predicate.
  • Field Details

  • Constructor Details

    • DatabaseSelectionPredicateBuilder

      public DatabaseSelectionPredicateBuilder()
  • Method Details

    • includeDatabases

      public Selectors.DatabaseSelectionPredicateBuilder includeDatabases(String databaseNames)
      Specify the names of the databases that should be included. This method will override previously included and excluded 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 previously excluded databases, although including 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 the Predicate that determines whether a database identified by its name is to be included.
      Returns:
      the table selection predicate; never null
      See Also: