public abstract class BaseResult extends Object implements Result
Constructor and Description |
---|
BaseResult(StoreQuery query)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
basicGetAttribute(String name)
Get the actual attribute value
|
protected abstract Object |
basicGetKey()
Get the actual key value
|
protected abstract Object |
basicGetValue()
Get the actual value
|
List<Object> |
getAggregatorResults()
Retrieve the aggregator value(s)
|
<T> T |
getAttribute(Attribute<T> attribute)
Retrieve the given attribute value for this cache entry
|
Object |
getKey()
Return the key for this cache entry.
|
Object |
getValue()
Return the value for this cache entry.
|
void |
setAggregateResults(List<Object> aggregateResults)
Set the aggregate results for this row
|
String |
toString() |
public BaseResult(StoreQuery query)
query
- public void setAggregateResults(List<Object> aggregateResults)
aggregateResults
- public Object getKey()
protected abstract Object basicGetKey()
public List<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 Object getValue() throws SearchException
getValue
in interface Result
SearchException
- if values were not selected by the originating queryprotected abstract Object basicGetValue()
public <T> T getAttribute(Attribute<T> attribute)
getAttribute
in interface Result
attribute
- the attribute to retrieveprotected abstract Object basicGetAttribute(String name)
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.