Interface QueryRouter
public interface QueryRouter
An interface used by Queries to route themselves to an appropriate DataNode. As of
1.2 QueryRouter only supports routing by DataMap.
- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptiondefault DataNodeengineForDataMap(DataMap map) Deprecated, for removal: This API element is subject to removal in a future version.default DataNodeengineForName(String name) Deprecated, for removal: This API element is subject to removal in a future version.renamed tonodeForName(String).nodeForDataMap(DataMap map) Returns a DataNode that is configured to handle a given DataMap.nodeForName(String name) Returns a DataNode for a given name.voidA callback method that allows a query to set its preferred node during the routing phase.
-
Method Details
-
route
A callback method that allows a query to set its preferred node during the routing phase. It allows query to further customize its routing, e.g. it is possible to implement query chains that pass multiple queries for execution.- Parameters:
node- node to use for query executionquery- A query to execute.substitutedQuery- a query that was substituted for "query". Results must be mapped back to substituted query.
-
nodeForName
-
nodeForDataMap
-
engineForName
Deprecated, for removal: This API element is subject to removal in a future version.renamed tonodeForName(String).- Since:
- 4.0
-
engineForDataMap
Deprecated, for removal: This API element is subject to removal in a future version.renamed tonodeForDataMap(DataMap).
-
nodeForDataMap(DataMap).