Replicate Filter
The replicate filter enables explicit inclusion or exclusion of tables and schemas. Each specification supports wildcards and multiple
entries.
| Pre-configured filter name | replicate |
| Classname | com.continuent.tungsten.replicator.filter.ReplicateFilter |
| Property prefix | replicator.filter.replicate |
| Stage compatibility | Any |
tpm Option compatibility | |
| Data compatibility | Any event |
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
ignore | string | empty | Comma separated list of database/tables to ignore during replication |
do | string | empty | Comma separated list of database/tables to replicate |
Rules using the supplied parameters are evaluated as follows:
- When both
doandignoreare empty, updates are allowed to any table. - When only
dois specified, only the schemas (or schemas and tables) mentioned in the list are replicated. - When only
ignoreis specified, all schemas/tables are replicated except those defined.
For each parameter, a comma-separated list of schema or schema and table definitions are supported, and wildcards using * (any number
of characters) and ? (single character) are also honored. For example:
do=sales: Replicates only the schemasales.ignore=sales: Replicates everything, ignoring the schemasales.ignore=sales.*: Replicates everything, ignoring the schemasales.ignore=sales.quarter?: Replicates everything, ignoring all tables within thesalesschema starting withsales.quarterand a single character. This would ignoresales.quarter1but replicatesales.quarterlytotals.ignore=sales.quarter*: Replicates everything, ignoring all tables in the schemasalesstarting withquarter.do=*.quarter: Replicates only the table namedquarterwithin any schema.do=sales.*totals,invoices: Replicates only tables in thesalesschema that end withtotals, and the entireinvoicesschema.