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
SortedMultiColumnQueryHits
implements sorting of query hits based onOrdering
s.
-
-
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 ornull
if there are no more score nodes.void
skip(int n)
Skips an
score 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 ornull
if there are no more score nodes.- Specified by:
nextScoreNodes
in interfaceMultiColumnQueryHits
- Overrides:
nextScoreNodes
in 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 IOException
Skips an
score nodes.- Specified by:
skip
in interfaceCloseableHits
- Overrides:
skip
in classFilterMultiColumnQueryHits
- Parameters:
n
- the number of score nodes to skip.- Throws:
IOException
- if an error occurs while skipping.
-
-