| Modifier and Type | Field and Description |
|---|---|
private Tables.ColumnNameFilter |
columnFilter |
private Configuration |
config |
private Predicate<String> |
dbFilter |
private Predicate<String> |
isBuiltInDb |
private Predicate<TableId> |
isBuiltInTable |
private Predicate<TableId> |
isIgnoredTable |
private Predicate<TableId> |
tableFilter |
| Constructor and Description |
|---|
Builder(Configuration config)
Create a Builder for a filter.
|
| Modifier and Type | Method and Description |
|---|---|
Filters |
build()
Build the filters.
|
Filters.Builder |
excludeAllTables(Filters otherFilter)
Exclude all those tables included by the given filter.
|
Filters.Builder |
excludeDatabases(Predicate<String> databases)
Exclude all the databases that the given predicate tests as true for.
|
Filters.Builder |
excludeTables(Predicate<TableId> tables)
Exclude all the tables that the given predicate tests as true for.
|
Filters.Builder |
includeDatabases(Predicate<String> databases)
Include all the databases that the given predicate tests as true for.
|
Filters.Builder |
includeTables(Predicate<TableId> tables)
Include the tables that the given predicate tests as true for.
|
Filters.Builder |
setFiltersFromFilters(Filters filters)
Set the filter to match the given other filter.
|
Filters.Builder |
setFiltersFromOffsets(Map<String,?> offsets)
Completely reset the filter to match the filter info in the given offsets.
|
private void |
setFiltersFromStrings(String dbIncludeList,
String dbExcludeList,
String tableIncludeList,
String tableExcludeList) |
private Tables.ColumnNameFilter columnFilter
private final Configuration config
public Builder(Configuration config)
config - the configuration of the connector.public Filters.Builder setFiltersFromOffsets(Map<String,?> offsets)
offsets - The offsets to set the filter info to.private void setFiltersFromStrings(String dbIncludeList, String dbExcludeList, String tableIncludeList, String tableExcludeList)
public Filters.Builder setFiltersFromFilters(Filters filters)
filters - The other filterpublic Filters.Builder excludeAllTables(Filters otherFilter)
otherFilter - the filterpublic Filters.Builder excludeDatabases(Predicate<String> databases)
databases - the databases to excludedpublic Filters.Builder includeDatabases(Predicate<String> databases)
databases - the databases to be includedpublic Filters.Builder excludeTables(Predicate<TableId> tables)
tables - the tables to be excluded.public Filters.Builder includeTables(Predicate<TableId> tables)
tables - the tables to be included.Copyright © 2021 JBoss by Red Hat. All rights reserved.