Package org.apache.geode.cache.lucene
Interface PageableLuceneQueryResults<K,V>
- Type Parameters:
K- The type of the keyV- The type of the value
- All Superinterfaces:
Iterator<List<LuceneResultStruct<K,V>>>
This interface allows you to retrieve a page of query results at a time, using the
hasNext() and next() methods.
PageableLuceneQueryResults can be serialized and sent to other members.
- See Also:
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
size
int size()Total number of hits matching the Lucene query across all pages.- Returns:
- int value representing total number of hits for this query across all pages.
-
getMaxScore
float getMaxScore()Returns the maximum score value across all pages.- Returns:
- float value representing the maximum score across all the Lucene result pages.
-
next
List<LuceneResultStruct<K,V>> next()Get the next page of results. -
hasNext
boolean hasNext()True if there is another page of results in PageableLuceneQueryResults.
-