public class SortedMultiColumnQueryHits extends FilterMultiColumnQueryHits
SortedMultiColumnQueryHits implements sorting of query hits
based on Orderings.| 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, getSizepublic 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 MultiColumnQueryHitsnextScoreNodes in class FilterMultiColumnQueryHitsIOException - if an error occurs while reading from the index.public void skip(int n)
throws IOException
n score nodes.skip in interface CloseableHitsskip in class FilterMultiColumnQueryHitsn - the number of score nodes to skip.IOException - if an error occurs while skipping.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.