public class SearchResults extends Object implements Filter.Results
| Constructor and Description |
|---|
SearchResults(EsClient client,
String index,
String type,
EsRequest query)
Creates new search result instance for the given search request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any and all resources for the operation.
|
long |
getCardinality()
Gets cardinality for this search request.
|
boolean |
getNextBatch(ResultWriter writer,
int batchSize)
Obtain the next batch of results for the query.
|
public boolean getNextBatch(ResultWriter writer, int batchSize)
Filter.ResultsgetNextBatch in interface Filter.Resultswriter - the writer that this method should use to register results in the batch; never nullbatchSize - the ideal number of node keys that are to be included in this batch; always positivepublic void close()
Filter.ResultsFilter.Results.getNextBatch(ResultWriter, int) was never called.close in interface AutoCloseableclose in interface Filter.Resultspublic long getCardinality()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.