|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.storage.dom.NodeIterator
Class NodeIterator is used to iterate over nodes in the DOM storage. This implementation locks the DOM file to read the node and unlocks it afterwards. It is thus safer than DOMFileIterator, since the node's value will not change.
| Constructor Summary | |
NodeIterator(java.lang.Object lock,
DOMFile db,
DocumentImpl doc,
long address)
|
|
NodeIterator(java.lang.Object lock,
DOMFile db,
NodeProxy node,
boolean poolable)
|
|
| Method Summary | |
long |
currentAddress()
Returns the internal virtual address of the node at the iterator's current position. |
boolean |
hasNext()
Are there more nodes to be read? |
java.lang.Object |
next()
Returns the next node in document order. |
void |
remove()
Remove the current node. |
void |
setTo(long address)
Reposition the iterate at a given address. |
void |
setTo(NodeProxy node)
Reposition the iterator at the address of the proxy node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeIterator(java.lang.Object lock,
DOMFile db,
NodeProxy node,
boolean poolable)
throws BTreeException,
java.io.IOException
public NodeIterator(java.lang.Object lock,
DOMFile db,
DocumentImpl doc,
long address)
| Method Detail |
public long currentAddress()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic void setTo(NodeProxy node)
node - The new to valuepublic void setTo(long address)
address - The new to value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||