ehcache

net.sf.ehcache.search.impl
Class GroupedResultImpl

java.lang.Object
  extended by net.sf.ehcache.search.impl.BaseResult
      extended by 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
GroupedResultImpl(StoreQuery query, Map<String,Object> attributes, Object[] sortAttributes, List<Object> aggregatorResults, Map<String,Object> groupBy)
          Constructor
 
Method Summary
protected  Object basicGetAttribute(String name)
          Get the actual attribute value
protected  Object basicGetKey()
          Get the actual key value
protected  Object basicGetValue()
          Get the actual value
 Map<String,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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupedResultImpl

public GroupedResultImpl(StoreQuery query,
                         Map<String,Object> attributes,
                         Object[] sortAttributes,
                         List<Object> aggregatorResults,
                         Map<String,Object> groupBy)
Constructor

Parameters:
query -
attributes -
sortAttributes -
aggregatorResults -
groupBy -
Method Detail

basicGetKey

protected Object basicGetKey()
Description copied from class: BaseResult
Get the actual key value

Specified by:
basicGetKey in class BaseResult
Returns:
key

basicGetValue

protected Object basicGetValue()
Description copied from class: BaseResult
Get the actual value

Specified by:
basicGetValue in class BaseResult
Returns:
value

basicGetAttribute

protected Object basicGetAttribute(String name)
Description copied from class: BaseResult
Get the actual attribute value

Specified by:
basicGetAttribute in class BaseResult
Returns:
attribute

getGroupByValues

public Map<String,Object> getGroupByValues()
Map of attributes to their values, used to create this grouped result

Returns:
read-only map of group by attributes

ehcache

Copyright 2001-2015, Terracotta, Inc.