Package net.sf.ehcache.search.impl
Class GroupedResultImpl
- java.lang.Object
-
- net.sf.ehcache.search.impl.BaseResult
-
- net.sf.ehcache.search.impl.GroupedResultImpl
-
- All Implemented Interfaces:
Result
public class GroupedResultImpl extends BaseResult
Representation of single result row from group-by queries- Author:
- vfunshte
-
-
Constructor Summary
Constructors Constructor Description GroupedResultImpl(StoreQuery query, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.Object[] sortAttributes, java.util.List<java.lang.Object> aggregatorResults, java.util.Map<java.lang.String,java.lang.Object> groupBy)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectbasicGetAttribute(java.lang.String name)Get the actual attribute valueprotected java.lang.ObjectbasicGetKey()Get the actual key valueprotected java.lang.ObjectbasicGetValue()Get the actual valuejava.util.Map<java.lang.String,java.lang.Object>getGroupByValues()Map of attributes to their values, used to create this grouped result-
Methods inherited from class net.sf.ehcache.search.impl.BaseResult
getAggregatorResults, getAttribute, getKey, getValue, setAggregateResults, toString
-
-
-
-
Constructor Detail
-
GroupedResultImpl
public GroupedResultImpl(StoreQuery query, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.Object[] sortAttributes, java.util.List<java.lang.Object> aggregatorResults, java.util.Map<java.lang.String,java.lang.Object> groupBy)
Constructor- Parameters:
query-attributes-sortAttributes-aggregatorResults-groupBy-
-
-
Method Detail
-
basicGetKey
protected java.lang.Object basicGetKey()
Description copied from class:BaseResultGet the actual key value- Specified by:
basicGetKeyin classBaseResult- Returns:
- key
-
basicGetValue
protected java.lang.Object basicGetValue()
Description copied from class:BaseResultGet the actual value- Specified by:
basicGetValuein classBaseResult- Returns:
- value
-
basicGetAttribute
protected java.lang.Object basicGetAttribute(java.lang.String name)
Description copied from class:BaseResultGet the actual attribute value- Specified by:
basicGetAttributein classBaseResult- Returns:
- attribute
-
getGroupByValues
public java.util.Map<java.lang.String,java.lang.Object> getGroupByValues()
Map of attributes to their values, used to create this grouped result- Returns:
- read-only map of group by attributes
-
-