public class QueryHitsAdapter extends Object implements MultiColumnQueryHits
| Constructor and Description |
|---|
QueryHitsAdapter(QueryHits hits,
Name selectorName)
Creates a new adapter for
hits. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources held by this hits instance.
|
Name[] |
getSelectorNames() |
int |
getSize() |
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. |
public ScoreNode[] nextScoreNodes() throws IOException
null if
there are no more score nodes.nextScoreNodes in interface MultiColumnQueryHitsIOException - if an error occurs while reading from the index.public Name[] getSelectorNames()
getSelectorNames in interface MultiColumnQueryHitsScoreNodes
returned by MultiColumnQueryHits.nextScoreNodes().public void close()
throws IOException
close in interface CloseableHitsIOException - if an error occurs while releasing resources.public int getSize()
getSize in interface CloseableHits-1 if the size is unknown.public void skip(int n)
throws IOException
n score nodes.skip in interface CloseableHitsn - the number of score nodes to skip.IOException - if an error occurs while skipping.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.