public abstract class BaseResult extends java.lang.Object implements Result
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object> |
aggregateResults |
private StoreQuery |
query |
Constructor and Description |
---|
BaseResult(StoreQuery query)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
basicGetAttribute(java.lang.String name)
Get the actual attribute value
|
protected abstract java.lang.Object |
basicGetKey()
Get the actual key value
|
protected abstract java.lang.Object |
basicGetValue()
Get the actual value
|
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.
|
(package private) abstract java.lang.Object |
getSortAttribute(int pos)
Get attribute value for use in sorting
|
java.lang.Object |
getValue()
Return the value for this cache entry.
|
void |
setAggregateResults(java.util.List<java.lang.Object> aggregateResults)
Set the aggregate results for this row
|
java.lang.String |
toString() |
private final StoreQuery query
private volatile java.util.List<java.lang.Object> aggregateResults
public BaseResult(StoreQuery query)
query
- public void setAggregateResults(java.util.List<java.lang.Object> aggregateResults)
aggregateResults
- public java.lang.Object getKey()
protected abstract java.lang.Object basicGetKey()
public java.util.List<java.lang.Object> getAggregatorResults() throws SearchException
getAggregatorResults
in interface Result
List
. The aggregator results will be in the same order they were added to the querySearchException
- if no aggregators were requested in the querypublic java.lang.Object getValue() throws SearchException
getValue
in interface Result
SearchException
- if values were not selected by the originating queryprotected abstract java.lang.Object basicGetValue()
public <T> T getAttribute(Attribute<T> attribute)
getAttribute
in interface Result
attribute
- the attribute to retrieveprotected abstract java.lang.Object basicGetAttribute(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
abstract java.lang.Object getSortAttribute(int pos)
pos
-