public class SortedMultiColumnQueryHits extends FilterMultiColumnQueryHits
SortedMultiColumnQueryHits
implements sorting of query hits
based on Ordering
s.Constructor and Description |
---|
SortedMultiColumnQueryHits(MultiColumnQueryHits hits,
Ordering[] orderings,
org.apache.lucene.index.IndexReader reader)
Creates sorted query hits.
|
Modifier and Type | Method and Description |
---|---|
ScoreNode[] |
nextScoreNodes()
Returns the next score nodes in this QueryHits or
null if
there are no more score nodes. |
void |
skip(int n)
Skips a
n score nodes. |
close, getSelectorNames, getSize
public SortedMultiColumnQueryHits(MultiColumnQueryHits hits, Ordering[] orderings, org.apache.lucene.index.IndexReader reader) throws IOException
hits
- the hits to sort.orderings
- the ordering specifications.reader
- the current index reader.IOException
- if an error occurs while reading from the index.public ScoreNode[] nextScoreNodes() throws IOException
null
if
there are no more score nodes.nextScoreNodes
in interface MultiColumnQueryHits
nextScoreNodes
in class FilterMultiColumnQueryHits
IOException
- if an error occurs while reading from the index.public void skip(int n) throws IOException
n
score nodes.skip
in interface CloseableHits
skip
in class FilterMultiColumnQueryHits
n
- the number of score nodes to skip.IOException
- if an error occurs while skipping.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.