protected class KeyIndex.KeyIndexIterator.KeyIndexHeapNode extends MultiValuedNodeHeapIterator.HeapNode
id
for use as one heap node in a
MultiValuedNodeHeapIterator
._isStartSet, _markedNode, _node
Modifier and Type | Method and Description |
---|---|
MultiValuedNodeHeapIterator.HeapNode |
cloneHeapNode()
Creates a deep copy of this
HeapNode . |
void |
gotoMark()
Restores the current node remembered by
setMark() . |
boolean |
isLessThan(MultiValuedNodeHeapIterator.HeapNode heapNode)
Performs a comparison of the two heap nodes
|
MultiValuedNodeHeapIterator.HeapNode |
reset()
Reset the heap node back to its beginning.
|
void |
setMark()
Remembers the current node for the next call to
gotoMark() . |
MultiValuedNodeHeapIterator.HeapNode |
setStartNode(int node)
Sets context with respect to which this heap node is
evaluated.
|
int |
step()
Advance to the next node represented by this
HeapNode |
public int step()
HeapNode
step
in class MultiValuedNodeHeapIterator.HeapNode
public MultiValuedNodeHeapIterator.HeapNode cloneHeapNode()
HeapNode
. The clone is not
reset from the current position of the original.cloneHeapNode
in class MultiValuedNodeHeapIterator.HeapNode
public void setMark()
gotoMark()
.setMark
in class MultiValuedNodeHeapIterator.HeapNode
public void gotoMark()
setMark()
.gotoMark
in class MultiValuedNodeHeapIterator.HeapNode
public boolean isLessThan(MultiValuedNodeHeapIterator.HeapNode heapNode)
isLessThan
in class MultiValuedNodeHeapIterator.HeapNode
heapNode
- the heap node against which to comparetrue
if and only if the current node for
this heap node is before the current node of the
argument heap node in document order.public MultiValuedNodeHeapIterator.HeapNode setStartNode(int node)
Sets context with respect to which this heap node is evaluated.
This has no real effect on this kind of heap node. Instead,
the KeyIndex.KeyIndexIterator.setStartNode(int)
method should
create new instances of this class to represent the effect of
changing the context.
setStartNode
in class MultiValuedNodeHeapIterator.HeapNode
node
- The new context nodeMultiValuedNodeHeapIterator.HeapNode
which may or may not be the same as
this HeapNode
.public MultiValuedNodeHeapIterator.HeapNode reset()
reset
in class MultiValuedNodeHeapIterator.HeapNode
MultiValuedNodeHeapIterator.HeapNode
which may or may not be the same as
this HeapNode
.Copyright © 2018 JBoss by Red Hat. All rights reserved.