public interface Result
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getAggregatorResults()
Retrieve the aggregator value(s)
|
<T> T |
getAttribute(Attribute<T> attribute)
Retrieve the given attribute value for this cache entry
|
java.lang.Object |
getKey()
Return the key for this cache entry.
|
java.lang.Object |
getValue()
Return the value for this cache entry.
|
java.lang.Object getKey() throws SearchException
SearchException
- if keys were not selected by the originating queryjava.lang.Object getValue() throws SearchException
SearchException
- if values were not selected by the originating query<T> T getAttribute(Attribute<T> attribute) throws SearchException
attribute
- the attribute to retrieveSearchException
- if the given attribute was not explicitly selected by the
originating queryjava.util.List<java.lang.Object> getAggregatorResults() throws SearchException
List
. The aggregator results will be in the same order they were added to the querySearchException
- if no aggregators were requested in the query