Class SortedMultiColumnQueryHits
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.FilterMultiColumnQueryHits
-
- org.apache.jackrabbit.core.query.lucene.SortedMultiColumnQueryHits
-
- All Implemented Interfaces:
CloseableHits,MultiColumnQueryHits
public class SortedMultiColumnQueryHits extends FilterMultiColumnQueryHits
SortedMultiColumnQueryHitsimplements sorting of query hits based onOrderings.
-
-
Constructor Summary
Constructors Constructor Description SortedMultiColumnQueryHits(MultiColumnQueryHits hits, Ordering[] orderings, IndexReader reader)Creates sorted query hits.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreNode[]nextScoreNodes()Returns the next score nodes in this QueryHits ornullif there are no more score nodes.voidskip(int n)Skips anscore nodes.-
Methods inherited from class org.apache.jackrabbit.core.query.lucene.FilterMultiColumnQueryHits
close, getSelectorNames, getSize
-
-
-
-
Constructor Detail
-
SortedMultiColumnQueryHits
public SortedMultiColumnQueryHits(MultiColumnQueryHits hits, Ordering[] orderings, IndexReader reader) throws IOException
Creates sorted query hits.- Parameters:
hits- the hits to sort.orderings- the ordering specifications.reader- the current index reader.- Throws:
IOException- if an error occurs while reading from the index.
-
-
Method Detail
-
nextScoreNodes
public ScoreNode[] nextScoreNodes() throws IOException
Returns the next score nodes in this QueryHits ornullif there are no more score nodes.- Specified by:
nextScoreNodesin interfaceMultiColumnQueryHits- Overrides:
nextScoreNodesin classFilterMultiColumnQueryHits- Returns:
- the next score nodes in this QueryHits.
- Throws:
IOException- if an error occurs while reading from the index.
-
skip
public void skip(int n) throws IOExceptionSkips anscore nodes.- Specified by:
skipin interfaceCloseableHits- Overrides:
skipin classFilterMultiColumnQueryHits- Parameters:
n- the number of score nodes to skip.- Throws:
IOException- if an error occurs while skipping.
-
-