Skip to main content
Common Reference

dropstatementdata.js Filter

Within certain replication deployments, enforcing that only row-based information is replicated is important to ensure that the row data is replicated properly. For example, when replicating to databases that do not accept statements, these events must be filtered out.

Pre-configured filter namedropstatementdata
JavaScript Filter Filetungsten-replicator/support/filters-javascript/dropstatementdata.js
Property prefixreplicator.filter.dropstatementdata
Stage compatibilitybinlog-to-q, q-to-dbms
tpm Option compatibilitysvc-extractor-filters, svc-applier-filters
Data compatibilityAny event

This is achieved by checking for statements, and then removing them from the event:

data = event.getData();

for(i = 0; i < data.size(); i++)
{
d = data.get(i);

if(d instanceof com.continuent.tungsten.replicator.dbms.StatementData)
{
data.remove(i);
i--;
}
}