Interface CloseableHits
-
- All Known Subinterfaces:
MultiColumnQueryHits,QueryHits
- All Known Implementing Classes:
AbstractQueryHits,ChildNodesQueryHits,DefaultQueryHits,FilterMultiColumnQueryHits,Join,LuceneQueryHits,NodeTraversingQueryHits,QueryHitsAdapter,SortedLuceneQueryHits,SortedMultiColumnQueryHits
public interface CloseableHitsDefines an interface for query hits that need to be closed when done reading from it. A client will callclose()to release resources after a query has been executed and the results have been read.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Releases resources held by this hits instance.intgetSize()voidskip(int n)Skips anscore nodes.
-
-
-
Method Detail
-
close
void close() throws IOExceptionReleases resources held by this hits instance.- Throws:
IOException- if an error occurs while releasing resources.
-
getSize
int getSize()
- Returns:
- the number of results or
-1if the size is unknown.
-
skip
void skip(int n) throws IOException
Skips anscore nodes.- Parameters:
n- the number of score nodes to skip.- Throws:
IOException- if an error occurs while skipping.
-
-