org.apache.jackrabbit.jcr2spi.query
Interface ScoreNodeIterator

All Superinterfaces:
Iterator, NodeIterator, RangeIterator
All Known Implementing Classes:
NodeIteratorImpl

public interface ScoreNodeIterator
extends NodeIterator

Extends the NodeIterator interface by adding a getScore() method that returns the score for the node that is returned by NodeIterator.nextNode().


Method Summary
 double getScore()
          Returns the score of the node returned by NodeIterator.nextNode().
 
Methods inherited from interface javax.jcr.NodeIterator
nextNode
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getScore

double getScore()
Returns the score of the node returned by NodeIterator.nextNode(). In other words, this method returns the score value of the next Node.

Returns:
the score of the node returned by NodeIterator.nextNode().
Throws:
NoSuchElementException - if there is no next node.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.