Class Filters.Builder
java.lang.Object
io.debezium.connector.mysql.legacy.Filters.Builder
- Enclosing class:
- Filters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the filters.excludeAllTables(Filters otherFilter) Exclude all those tables included by the given filter.excludeDatabases(Predicate<String> databases) Exclude all the databases that the given predicate tests as true for.excludeTables(Predicate<TableId> tables) Exclude all the tables that the given predicate tests as true for.includeDatabases(Predicate<String> databases) Include all the databases that the given predicate tests as true for.includeTables(Predicate<TableId> tables) Include the tables that the given predicate tests as true for.setFiltersFromFilters(Filters filters) Set the filter to match the given other filter.setFiltersFromOffsets(Map<String, ?> offsets) Completely reset the filter to match the filter info in the given offsets.private voidsetFiltersFromStrings(String dbIncludeList, String dbExcludeList, String tableIncludeList, String tableExcludeList)
-
Field Details
-
dbFilter
-
tableFilter
-
isBuiltInDb
-
isBuiltInTable
-
isIgnoredTable
-
columnFilter
-
config
-
-
Constructor Details
-
Builder
Create a Builder for a filter. Set the initial filter data to match the filter data in the given configuration.- Parameters:
config- the configuration of the connector.
-
-
Method Details
-
setFiltersFromOffsets
Completely reset the filter to match the filter info in the given offsets. This will completely reset the filters to those passed in.- Parameters:
offsets- The offsets to set the filter info to.- Returns:
- this
-
setFiltersFromStrings
-
setFiltersFromFilters
Set the filter to match the given other filter. This will completely reset the filters to those passed in.- Parameters:
filters- The other filter- Returns:
- this
-
excludeAllTables
Exclude all those tables included by the given filter.- Parameters:
otherFilter- the filter- Returns:
- this
-
excludeDatabases
Exclude all the databases that the given predicate tests as true for.- Parameters:
databases- the databases to excluded- Returns:
-
includeDatabases
Include all the databases that the given predicate tests as true for. All databases previously included will still be included.- Parameters:
databases- the databases to be included- Returns:
-
excludeTables
Exclude all the tables that the given predicate tests as true for.- Parameters:
tables- the tables to be excluded.- Returns:
- this
-
includeTables
Include the tables that the given predicate tests as true for. Tables previously included will still be included.- Parameters:
tables- the tables to be included.- Returns:
- this
-
build
Build the filters.- Returns:
- the
Filters
-