Class 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
    • 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: BaseResult
        Get the actual key value
        Specified by:
        basicGetKey in class BaseResult
        Returns:
        key
      • basicGetValue

        protected java.lang.Object basicGetValue()
        Description copied from class: BaseResult
        Get the actual value
        Specified by:
        basicGetValue in class BaseResult
        Returns:
        value
      • basicGetAttribute

        protected java.lang.Object basicGetAttribute​(java.lang.String name)
        Description copied from class: BaseResult
        Get the actual attribute value
        Specified by:
        basicGetAttribute in class BaseResult
        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