|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.dom.RawNodeIterator
public class RawNodeIterator
An iterator that walks through the raw node data items in a document. The class keeps reading data items from the document's sequence of data pages until it encounters the end of the document. Each returned value contains the data of one node in the document.
Constructor Summary | |
---|---|
RawNodeIterator(DBBroker broker,
DOMFile db,
NodeProxy proxy)
Construct the iterator. |
|
RawNodeIterator(DBBroker broker,
DOMFile db,
StoredNode node)
Construct the iterator. |
Method Summary | |
---|---|
void |
closeDocument()
|
long |
currentAddress()
Returns the internal virtual storage address of the node at the cursor's current position. |
Value |
next()
Returns the raw data of the next node in document order. |
void |
seek(NodeProxy proxy)
Reposition the iterator to the start of the specified node. |
void |
seek(StoredNode node)
Reposition the iterator to the start of the specified node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawNodeIterator(DBBroker broker, DOMFile db, StoredNode node) throws IOException
broker
- the owner object used to acquire a lock on the underlying data file (usually a DBBroker)db
- the underlying data filenode
- the start node where the iterator will be positioned.
IOException
public RawNodeIterator(DBBroker broker, DOMFile db, NodeProxy proxy) throws IOException
broker
- the owner object used to acquire a lock on the underlying data file (usually a DBBroker)db
- the underlying data fileproxy
- the start node where the iterator will be positioned.
IOException
Method Detail |
---|
public void seek(StoredNode node) throws IOException
node
- the start node where the iterator will be positioned.
IOException
public void seek(NodeProxy proxy) throws IOException
proxy
- the start node where the iterator will be positioned.
IOException
public Value next()
public void closeDocument()
public long currentAddress()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |