|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.query.Mapping
this class is used to record the mapping from [variable] Node's to the indexes they are bound to in a Query.
Constructor Summary | |
Mapping()
create a new, empty mapping. |
Method Summary | |
int |
indexOf(Node v)
get the index of a node in the mapping; undefined if the node is not mapped. |
boolean |
maps(Node v)
|
int |
newIndex(Node v)
allocate an index to the node _v_. |
int |
size()
Answer the number of names currently held in the map |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Mapping()
Method Detail |
public int indexOf(Node v)
v
- the node to look up
public int newIndex(Node v)
v
- the node to be given an index
public int size()
public boolean maps(Node v)
v
- the node to look up
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |