Package org.jumpmind.symmetric.route
Class LookupTableDataRouter
java.lang.Object
org.jumpmind.symmetric.route.AbstractDataRouter
org.jumpmind.symmetric.route.LookupTableDataRouter
- All Implemented Interfaces:
IBuiltInExtensionPoint
,IExtensionPoint
,IDataRouter
public class LookupTableDataRouter
extends AbstractDataRouter
implements IDataRouter, IBuiltInExtensionPoint
A data router that uses a lookup table to map data to nodes
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLookupTable
(Map<String, String> params, Router router, SimpleRouterContext routingContext) getParams
(Router router, SimpleRouterContext routingContext) Cache parsed expressions in the context to minimize the amount of parsing we have to do when we have lots of throughput.routeToNodes
(SimpleRouterContext routingContext, DataMetaData dataMetaData, Set<Node> nodes, boolean initialLoad, boolean initialLoadSelectUsed, TriggerRouter triggerRouter) Methods inherited from class org.jumpmind.symmetric.route.AbstractDataRouter
addNodeId, completeBatch, contextCommitted, getDataAsObject, getDataAsString, getDataMap, getDataObjectMap, getNewDataAsObject, getNewDataAsString, getNullData, getOldDataAsObject, getOldDataAsString, getPkDataAsObject, getPkDataAsString, isConfigurable, isDmlOnly, testColumnNamesMatchValues, toExternalIds, toNodeIds
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jumpmind.symmetric.route.IDataRouter
completeBatch, contextCommitted, isConfigurable, isDmlOnly
-
Field Details
-
PARAM_LOOKUP_TABLE
- See Also:
-
PARAM_KEY_COLUMN
- See Also:
-
PARAM_MAPPED_KEY_COLUMN
- See Also:
-
PARAM_EXTERNAL_ID_COLUMN
- See Also:
-
PARAM_ALL_NODES_VALUE
- See Also:
-
-
Constructor Details
-
LookupTableDataRouter
-
LookupTableDataRouter
public LookupTableDataRouter()
-
-
Method Details
-
routeToNodes
public Set<String> routeToNodes(SimpleRouterContext routingContext, DataMetaData dataMetaData, Set<Node> nodes, boolean initialLoad, boolean initialLoadSelectUsed, TriggerRouter triggerRouter) - Specified by:
routeToNodes
in interfaceIDataRouter
-
getParams
Cache parsed expressions in the context to minimize the amount of parsing we have to do when we have lots of throughput. -
parse
- Throws:
SyntaxParsingException
-
getLookupTable
-