public class HeuristicRoutingPolicy extends RoutingPolicyBase
Constructor and Description |
---|
HeuristicRoutingPolicy(ExecContext context) |
Modifier and Type | Method and Description |
---|---|
OpRouter |
addRouter(OpRouter from,
OpRouter newRouter)
create the relationship between 2 router nodes.
|
OpRouter |
generateRoutingPolicy(com.hp.hpl.jena.query.Query query)
Creating the policy to route the mapping data
|
OpRouter |
next(OpRouter curRouter,
Mapping mapping)
get the next router from the current router
|
ContinuousConstruct |
registerConstructQuery(com.hp.hpl.jena.query.Query query)
register the construct-type query with the engine
|
ContinuousSelect |
registerSelectQuery(com.hp.hpl.jena.query.Query query)
register the select-type query with the engine
|
getContext
public HeuristicRoutingPolicy(ExecContext context)
public OpRouter generateRoutingPolicy(com.hp.hpl.jena.query.Query query)
query
- public OpRouter addRouter(OpRouter from, OpRouter newRouter)
from
- the departing routernewRouter
- the arriving routerpublic OpRouter next(OpRouter curRouter, Mapping mapping)
curRouter
- current routermapping
- public ContinuousSelect registerSelectQuery(com.hp.hpl.jena.query.Query query)
query
- public ContinuousConstruct registerConstructQuery(com.hp.hpl.jena.query.Query query)
query
-