|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.jcr2spi.query.NodeIteratorImpl
public class NodeIteratorImpl
Implements a NodeIterator
returned by
QueryResult.getNodes()
.
Constructor Summary | |
---|---|
NodeIteratorImpl(ItemManager itemMgr,
HierarchyManager hierarchyMgr,
QueryInfo queryInfo)
Creates a new NodeIteratorImpl instance. |
Method Summary | |
---|---|
long |
getPosition()
Returns the current position in this NodeIterator . |
double |
getScore()
Returns the score of the node returned by nextNode() . |
long |
getSize()
Returns the number of nodes in this iterator. |
boolean |
hasNext()
Returns true if there is another Node
available; false otherwise. |
Object |
next()
Returns the next Node in the result set. |
Node |
nextNode()
Returns the next Node in the result set. |
void |
remove()
|
void |
skip(long skipNum)
Skip a number of Node s in this iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeIteratorImpl(ItemManager itemMgr, HierarchyManager hierarchyMgr, QueryInfo queryInfo)
NodeIteratorImpl
instance.
itemMgr
- The ItemManager
to build Node
instances.hierarchyMgr
- The HierarchyManager
used to retrieve the
HierarchyEntry objects from the ids returned by the query.queryInfo
- the query result.Method Detail |
---|
public double getScore() throws NoSuchElementException
nextNode()
. In other
words, this method returns the score value of the next Node
.
getScore
in interface ScoreNodeIterator
nextNode()
.
NoSuchElementException
- if there is no next node.ScoreNodeIterator.getScore()
public Node nextNode() throws NoSuchElementException
Node
in the result set.
nextNode
in interface NodeIterator
Node
in the result set.
NoSuchElementException
- if iteration has no more Node
s.NodeIterator.nextNode()
public void skip(long skipNum) throws NoSuchElementException
Node
s in this iterator.
skip
in interface RangeIterator
skipNum
- the non-negative number of Node
s to skip
NoSuchElementException
- if skipped past the last Node
in this iterator.RangeIterator.skip(long)
public long getSize()
getSize
in interface RangeIterator
RangeIterator.getSize()
public long getPosition()
NodeIterator
.
getPosition
in interface RangeIterator
NodeIterator
.RangeIterator.getPosition()
public Object next() throws NoSuchElementException
Node
in the result set.
next
in interface Iterator
Node
in the result set.
NoSuchElementException
- if iteration has no more Node
s.Iterator.next()
public boolean hasNext()
true
if there is another Node
available; false
otherwise.
hasNext
in interface Iterator
true
if there is another Node
available; false
otherwise.Iterator.hasNext()
public void remove()
remove
in interface Iterator
UnsupportedOperationException
- always.Iterator.remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |