public class KeyIndex.KeyIndexIterator extends MultiValuedNodeHeapIterator
key function or the XPath id function.| Modifier and Type | Class and Description |
|---|---|
protected class |
KeyIndex.KeyIndexIterator.KeyIndexHeapNode
Represents the DTM nodes retrieved for one key value or one string
argument to
id for use as one heap node in a
MultiValuedNodeHeapIterator. |
MultiValuedNodeHeapIterator.HeapNode_includeSelf, _isRestartable, _last, _markedNode, _position, _startNodeEND| Modifier and Type | Method and Description |
|---|---|
int |
getLast()
Returns the number of nodes in this iterator.
|
int |
getNodeByPosition(int position)
Return the node at the given position.
|
protected void |
init()
Evaluate the reference to the
key or id
function with the context specified by setStartNode(int)
and set up this iterator to iterate over the DTM nodes that are
to be returned. |
protected IntegerArray |
lookupNodes(int root,
String keyValue)
Retrieve nodes for a particular key value or a particular id
argument value.
|
int |
next()
Get the next node in the iteration.
|
DTMAxisIterator |
reset()
Resets the iterator to the last start node.
|
DTMAxisIterator |
setStartNode(int node)
Set context node for the iterator.
|
addHeapNode, cloneIterator, gotoMark, setMarkgetAxis, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, resetPosition, returnNode, setRestartableprotected IntegerArray lookupNodes(int root, String keyValue)
root - The root node of the document containing the context nodekeyValue - The key value of id string argument valueIntegerArray of the resulting nodespublic DTMAxisIterator setStartNode(int node)
setStartNode in interface DTMAxisIteratorsetStartNode in class MultiValuedNodeHeapIteratornode - the context nodeDTMAxisIterator set to the start of the iteration.public int next()
next in interface DTMAxisIteratornext in class MultiValuedNodeHeapIteratorpublic DTMAxisIterator reset()
reset in interface DTMAxisIteratorreset in class MultiValuedNodeHeapIteratorprotected void init()
key or id
function with the context specified by setStartNode(int)
and set up this iterator to iterate over the DTM nodes that are
to be returned.init in class MultiValuedNodeHeapIteratorpublic int getLast()
getLast in interface DTMAxisIteratorgetLast in class DTMAxisIteratorBasepublic int getNodeByPosition(int position)
getNodeByPosition in interface DTMAxisIteratorgetNodeByPosition in class DTMAxisIteratorBaseposition - The positionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.