public class SimpleSearchResult<H> extends Object implements SearchResult<H>
| Constructor and Description |
|---|
SimpleSearchResult(long hitCount,
List<H> hits,
Map<AggregationKey<?>,?> aggregationResults,
Duration took,
Boolean timedOut) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
aggregation(AggregationKey<T> key) |
List<H> |
hits() |
boolean |
timedOut() |
Duration |
took() |
String |
toString() |
long |
totalHitCount() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAggregation, getHits, getTook, getTotalHitCount, isTimedOutpublic long totalHitCount()
totalHitCount in interface SearchResult<H>public List<H> hits()
hits in interface SearchResult<H>List containing one element for each matched entity.public <T> T aggregation(AggregationKey<T> key)
aggregation in interface SearchResult<H>T - The type of result for this aggregation.key - The key previously used to register the aggregation during query building.public Duration took()
took in interface SearchResult<H>Durationpublic boolean timedOut()
timedOut in interface SearchResult<H>Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.