public class SimpleSearchResult<H> extends Object implements SearchResult<H>
| Constructor and Description |
|---|
SimpleSearchResult(long hitCount,
List<H> hits,
Map<AggregationKey<?>,?> aggregationResults) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAggregation(AggregationKey<T> key) |
List<H> |
getHits() |
long |
getTotalHitCount() |
String |
toString() |
public SimpleSearchResult(long hitCount,
List<H> hits,
Map<AggregationKey<?>,?> aggregationResults)
public long getTotalHitCount()
getTotalHitCount in interface SearchResult<H>public List<H> getHits()
getHits in interface SearchResult<H>List containing one element for each matched entity.public <T> T getAggregation(AggregationKey<T> key)
getAggregation in interface SearchResult<H>T - The type of result for this aggregation.key - The key previously used to register the aggregation during query building.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.