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.Results
getNextBatch
in interface Filter.Results
writer
- 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.Results
Filter.Results.getNextBatch(ResultWriter, int)
was never called.close
in interface AutoCloseable
close
in interface Filter.Results
public long getCardinality()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.