org.apache.jackrabbit.core.query.lucene
Interface ScoreNodeIterator

All Superinterfaces:
Iterator, NodeIterator, RangeIterator

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
 float getScore()
          Returns the score of the node returned by NodeIterator.nextNode().
 NodeImpl nextNodeImpl()
          Returns the next Node in the result set.
 
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

public float 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.

nextNodeImpl

public NodeImpl nextNodeImpl()
Returns the next Node in the result set.

Returns:
the next Node in the result set.
Throws:
NoSuchElementException - if iteration has no more Nodes.


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