public class FilterMultiColumnQueryHits extends Object implements MultiColumnQueryHits
FilterMultiColumnQueryHits
implements a
MultiColumnQueryHits
filter that forwards each call to the underlying
query hits.Constructor and Description |
---|
FilterMultiColumnQueryHits(MultiColumnQueryHits hits)
Creates a new
FilterMultiColumnQueryHits , which forwards
each call to 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 FilterMultiColumnQueryHits(MultiColumnQueryHits hits)
FilterMultiColumnQueryHits
, which forwards
each call to hits
.hits
- the underlying query hits.public void close() throws IOException
close
in interface CloseableHits
IOException
- if an error occurs while releasing resources.public int getSize()
getSize
in interface CloseableHits
-1
if the size is unknown.public ScoreNode[] nextScoreNodes() throws IOException
null
if
there are no more score nodes.nextScoreNodes
in interface MultiColumnQueryHits
IOException
- if an error occurs while reading from the index.public Name[] getSelectorNames()
getSelectorNames
in interface MultiColumnQueryHits
ScoreNode
s
returned by MultiColumnQueryHits.nextScoreNodes()
.public void skip(int n) throws IOException
n
score nodes.skip
in interface CloseableHits
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.