|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.filter.CDCMetadataFilter
public class CDCMetadataFilter
Filter which for each row change transaction adds a change data capture row
to a corresponding change table.
Change table structure:
original columns ..., CDC_OP_TYPE, CDC_TIMESTAMP, CDC_SEQUENCE_NUMBER
Filter automatically generates a CDC_SEQUENCE_NUMBER primary key value for
the change table. However, for this to work correctly, caller must ensure
there are no parallel applies to the same change table (normally it isn't a
problem).
| Constructor Summary | |
|---|---|
CDCMetadataFilter()
|
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
ReplDBMSEvent |
filter(ReplDBMSEvent event)
Filter the event. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
setCdcColumnsAtFront(boolean atFront)
If true, CDC columns are expected to be at the front of original columns. |
void |
setSchemaNameSuffix(java.lang.String schemaNameSuffix)
Sets the schemaNameSuffix value. |
void |
setSequenceBeginning(long sequenceBeginning)
Which CDC sequence number to begin with, if CDC sequence number cannot be determined (eg. |
void |
setTableNameSuffix(java.lang.String tableNameSuffix)
Sets the tableNameSuffix value. |
void |
setToSingleSchema(java.lang.String toSingleSchema)
It is possibly to have all CDC tables in a single schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CDCMetadataFilter()
| Method Detail |
|---|
public void setSchemaNameSuffix(java.lang.String schemaNameSuffix)
schemaNameSuffix - The schemaNameSuffix to set.public void setTableNameSuffix(java.lang.String tableNameSuffix)
tableNameSuffix - The tableNameSuffix to set.public void setToSingleSchema(java.lang.String toSingleSchema)
toSingleSchema - Schema where all change tables are expected to be.public void setSequenceBeginning(long sequenceBeginning)
sequenceBeginning - CDC sequence number.public void setCdcColumnsAtFront(boolean atFront)
public ReplDBMSEvent filter(ReplDBMSEvent event)
throws ReplicatorException
filter in interface Filterevent - An event to be filtered
ReplicatorException - Thrown if there is a processing errorFilter.filter(com.continuent.tungsten.replicator.event.ReplDBMSEvent)
public void configure(PluginContext context)
throws ReplicatorException
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
failsReplicatorPlugin.configure(com.continuent.tungsten.replicator.plugin.PluginContext)
public void prepare(PluginContext context)
throws ReplicatorException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation failsReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)
public void release(PluginContext context)
throws ReplicatorException
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation failsReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||