public interface CloseableHits
close()
to release resources after a
query has been executed and the results have been read.Modifier and Type | Method and Description |
---|---|
void |
close()
Releases resources held by this hits instance.
|
int |
getSize() |
void |
skip(int n)
Skips a
n score nodes. |
void close() throws IOException
IOException
- if an error occurs while releasing resources.int getSize()
-1
if the size is unknown.void skip(int n) throws IOException
n
score nodes.n
- the number of score nodes to skip.IOException
- if an error occurs while skipping.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.