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

All Superinterfaces:
CloseableHits
All Known Implementing Classes:
FilterMultiColumnQueryHits, Join, QueryHitsAdapter, SortedMultiColumnQueryHits

public interface MultiColumnQueryHits
extends CloseableHits

MultiColumnQueryHits defines an interface for reading tuples of ScoreNodes. The ScoreNodes within a tuple are identified by selector Names.


Method Summary
 Name[] getSelectorNames()
           
 ScoreNode[] nextScoreNodes()
          Returns the next score nodes in this QueryHits or null if there are no more score nodes.
 
Methods inherited from interface org.apache.jackrabbit.core.query.lucene.CloseableHits
close, getSize, skip
 

Method Detail

nextScoreNodes

ScoreNode[] nextScoreNodes()
                           throws IOException
Returns the next score nodes in this QueryHits or null if there are no more score nodes.

Returns:
the next score nodes in this QueryHits.
Throws:
IOException - if an error occurs while reading from the index.

getSelectorNames

Name[] getSelectorNames()
Returns:
the selector names that correspond to the ScoreNodes returned by nextScoreNodes().


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