|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.filter.DatabaseTransformFilter
public class DatabaseTransformFilter
Filter to transform a specific database name to a new value using Java
regular expression rules. This filter matches the schema name using the
fromRegex expression and then does a replacement on the name using the
toRegex expression.
Can also be used to transform table names instead by turning on
transformTables flag. However, statement data transformation is unsupported
in this case.
Pattern,
Matcher| Constructor Summary | |
|---|---|
DatabaseTransformFilter()
|
|
| 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 |
setFromRegex1(java.lang.String fromRegex)
Sets the regex used to match the database name. |
void |
setFromRegex2(java.lang.String fromRegex)
Sets the regex used to match the database name. |
void |
setFromRegex3(java.lang.String fromRegex)
Sets the regex used to match the database name. |
void |
setFromRegex4(java.lang.String fromRegex)
Sets the regex used to match the database name. |
void |
setToRegex1(java.lang.String toRegex)
Sets the corresponding regex to transform the name. |
void |
setToRegex2(java.lang.String toRegex)
Sets the corresponding regex to transform the name. |
void |
setToRegex3(java.lang.String toRegex)
Sets the corresponding regex to transform the name. |
void |
setToRegex4(java.lang.String toRegex)
Sets the corresponding regex to transform the name. |
void |
setTransformTables(boolean transformTables)
Transform table instead of database names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseTransformFilter()
| Method Detail |
|---|
public void setFromRegex1(java.lang.String fromRegex)
public void setToRegex1(java.lang.String toRegex)
public void setFromRegex2(java.lang.String fromRegex)
public void setToRegex2(java.lang.String toRegex)
public void setFromRegex3(java.lang.String fromRegex)
public void setToRegex3(java.lang.String toRegex)
public void setFromRegex4(java.lang.String fromRegex)
public void setToRegex4(java.lang.String toRegex)
public void setTransformTables(boolean transformTables)
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 | |||||||||