|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.query.SimpleQueryHandler
Constructor Summary | |
SimpleQueryHandler(Graph graph)
make an instance, remember the graph |
Method Summary | |
boolean |
containsNode(Node n)
this is a simple-minded implementation of containsNode that uses find up to three times to locate the node. |
boolean |
isEmpty()
Answer true iff the subject graph is empty. |
ExtendedIterator |
objectsFor(Node s,
Node p)
deliver an iterator over all the objects _o_ such that _(s, p, o)_ is in the underlying graph; nulls count as wildcards. |
Stage |
patternStage(Mapping map,
Graph constraints,
Triple[] t)
produce a single Stage which will probe the underlying graph for triples matching p and inject all the resulting bindings into the processing stream (see Stage for details) _map_ is the variable binding map to use and update. |
BindingQueryPlan |
prepareBindings(Query q,
Node[] variables)
prepare a plan for generating bindings given the query _q_ and the result variables _variables_. |
TreeQueryPlan |
prepareTree(Graph pattern)
deliver a plan for executing the tree-match query defined by _pattern_. |
ExtendedIterator |
subjectsFor(Node p,
Node o)
deliver an iterator over all the subjects _s_ such that _(s, p, o)_ is in the underlying graph; nulls count as wildcards. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleQueryHandler(Graph graph)
Method Detail |
public Stage patternStage(Mapping map, Graph constraints, Triple[] t)
QueryHandler
patternStage
in interface QueryHandler
public BindingQueryPlan prepareBindings(Query q, Node[] variables)
QueryHandler
prepareBindings
in interface QueryHandler
public TreeQueryPlan prepareTree(Graph pattern)
QueryHandler
prepareTree
in interface QueryHandler
public ExtendedIterator objectsFor(Node s, Node p)
QueryHandler
objectsFor
in interface QueryHandler
public ExtendedIterator subjectsFor(Node p, Node o)
QueryHandler
subjectsFor
in interface QueryHandler
public boolean containsNode(Node n)
containsNode
in interface QueryHandler
public boolean isEmpty()
isEmpty
in interface QueryHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |