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, _startNode
END
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, setMark
getAxis, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, resetPosition, returnNode, setRestartable
protected 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 DTMAxisIterator
setStartNode
in class MultiValuedNodeHeapIterator
node
- the context nodeDTMAxisIterator
set to the start of the iteration.public int next()
next
in interface DTMAxisIterator
next
in class MultiValuedNodeHeapIterator
public DTMAxisIterator reset()
reset
in interface DTMAxisIterator
reset
in class MultiValuedNodeHeapIterator
protected 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 MultiValuedNodeHeapIterator
public int getLast()
getLast
in interface DTMAxisIterator
getLast
in class DTMAxisIteratorBase
public int getNodeByPosition(int position)
getNodeByPosition
in interface DTMAxisIterator
getNodeByPosition
in class DTMAxisIteratorBase
position
- The positionCopyright © 2018 JBoss by Red Hat. All rights reserved.