|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CloseableHits
Defines an interface for query hits that need to be closed when done reading
from it. A client will call close() to release resources after a
query has been executed and the results have been read.
| Method Summary | |
|---|---|
void |
close()
Releases resources held by this hits instance. |
int |
getSize()
|
void |
skip(int n)
Skips a n score nodes. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||