|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.store.DOMFileIterator
Class DOMFileIterator is used to iterate over nodes in the DOM storage. This implementation returns the raw value of the node. You have to call Node.deserialize() to read the node from the value data. The DOM file is locked to locate the data and released afterwards. Before working with the returned data, you should get a copy by calling value.getData().
Constructor Summary | |
DOMFileIterator(java.lang.Object lock,
DOMFile db,
long address)
Constructor for the DOMFileIterator object |
|
DOMFileIterator(java.lang.Object lock,
DOMFile db,
NodeProxy node)
Constructor for the DOMFileIterator object |
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 raw data of the next node in the sequence. |
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 DOMFileIterator(java.lang.Object lock, DOMFile db, NodeProxy node) throws org.dbxml.core.filer.BTreeException, java.io.IOException
db
- Description of the Parameternode
- Description of the Parameter
org.dbxml.core.filer.BTreeException
- Description of the Exception
java.io.IOException
- Description of the Exceptionpublic DOMFileIterator(java.lang.Object lock, DOMFile db, long address) throws org.dbxml.core.filer.BTreeException, java.io.IOException
db
- Description of the Parameteraddress
- Description of the Parameter
org.dbxml.core.filer.BTreeException
- Description of the Exception
java.io.IOException
- Description of the ExceptionMethod Detail |
public long currentAddress()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public 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 |