Package io.debezium.relational
Class Selectors
- java.lang.Object
-
- io.debezium.relational.Selectors
-
@Immutable public class Selectors extends Object
Define predicates determines whether tables or columns should be used. The predicates use rules to determine which tables and columns are included or excluded.Because tables can be included and excluded based upon their fully-qualified names and based upon the database names, this class defines a
builder
to collect the various regular expression patterns the predicate(s) will use to determine which columns and tables are included. The builder is then used tobuild
the immutable table selection predicate.By default all columns in included tables will be selected, except when they are specifically excluded using regular expressions that match the columns' fully-qualified names. Therefore, the predicate is constructed using a simple
static method
.- Author:
- Randall Hauch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Selectors.DatabaseSelectionPredicateBuilder
A builder of a database predicate.static interface
Selectors.TableIdToStringMapper
Implementations convert givenTableId
s to strings, so regular expressions can be applied to them for the purpose of table filtering.static class
Selectors.TableSelectionPredicateBuilder
A builder of a table predicate.
-
Constructor Summary
Constructors Constructor Description Selectors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Selectors.DatabaseSelectionPredicateBuilder
databaseSelector()
Obtain a newbuilder
for a table selection predicate.private static boolean
isEmpty(String value)
static Selectors.TableSelectionPredicateBuilder
tableSelector()
Obtain a newbuilder
for a table selection predicate.
-
-
-
Method Detail
-
databaseSelector
public static Selectors.DatabaseSelectionPredicateBuilder databaseSelector()
Obtain a newbuilder
for a table selection predicate.- Returns:
- the builder; never null
-
isEmpty
private static boolean isEmpty(String value)
-
tableSelector
public static Selectors.TableSelectionPredicateBuilder tableSelector()
Obtain a newbuilder
for a table selection predicate.- Returns:
- the builder; never null
-
-