Top Description Fields Constructors Methods
net.sf.ehcache.search.impl

public Class GroupedResultImpl

extends BaseResult
Class Inheritance
Imports
java.util.Collections, .List, .Map, net.sf.ehcache.store.StoreQuery

Representation of single result row from group-by queries
Author
vfunshte

Field Summary

Modifier and TypeField and Description
private final Map<String, Object>
private final Map<String, Object>
private final Object[]

Constructor Summary

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

Constructor

Method Summary

Modifier and TypeMethod and Description
protected Object
basicGetAttribute(String name)

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetAttribute.

Get the actual attribute value
protected Object
basicGetKey()

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetKey.

Get the actual key value
protected Object
basicGetValue()

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetValue.

Get the actual value
public Map<String, Object>

Returns:

read-only map of group by attributes
getGroupByValues
()

Map of attributes to their values, used to create this grouped result

pack-priv Object
getSortAttribute(int pos)

Implements abstract net.sf.ehcache.search.impl.BaseResult.getSortAttribute.

Get attribute value for use in sorting
Inherited from net.sf.ehcache.search.impl.BaseResult:
getAggregatorResultsgetAttributegetKeygetValuesetAggregateResultstoString

Field Detail

attributesback to summary
private final Map<String, Object> attributes
groupByValuesback to summary
private final Map<String, Object> groupByValues
sortAttributesback to summary
private final Object[] sortAttributes

Constructor Detail

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

Constructor

Method Detail

basicGetAttributeback to summary
protected Object basicGetAttribute(String name)

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetAttribute.

Doc from net.sf.ehcache.search.impl.BaseResult.basicGetAttribute.

Get the actual attribute value

Returns:Object

attribute

Annotations
@Override
basicGetKeyback to summary
protected Object basicGetKey()

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetKey.

Doc from net.sf.ehcache.search.impl.BaseResult.basicGetKey.

Get the actual key value

Returns:Object

key

Annotations
@Override
basicGetValueback to summary
protected Object basicGetValue()

Implements abstract net.sf.ehcache.search.impl.BaseResult.basicGetValue.

Doc from net.sf.ehcache.search.impl.BaseResult.basicGetValue.

Get the actual value

Returns:Object

value

Annotations
@Override
getGroupByValuesback to summary
public Map<String, Object> getGroupByValues()

Map of attributes to their values, used to create this grouped result

Returns:Map<String, Object>

read-only map of group by attributes

getSortAttributeback to summary
pack-priv Object getSortAttribute(int pos)

Implements abstract net.sf.ehcache.search.impl.BaseResult.getSortAttribute.

Doc from net.sf.ehcache.search.impl.BaseResult.getSortAttribute.

Get attribute value for use in sorting

Annotations
@Override