Class DimensionSelectorHavingSpec

    • Constructor Detail

      • DimensionSelectorHavingSpec

        public DimensionSelectorHavingSpec​(String dimName,
                                           String value,
                                           ExtractionFn extractionFn)
    • Method Detail

      • getValue

        public String getValue()
      • getDimension

        public String getDimension()
      • setQuery

        public void setQuery​(GroupByQuery query)
        Description copied from interface: HavingSpec
        Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.
        Specified by:
        setQuery in interface HavingSpec
      • eval

        public boolean eval​(ResultRow row)
        Description copied from interface: HavingSpec
        Evaluates if a given row satisfies the having spec.
        Specified by:
        eval in interface HavingSpec
        Parameters:
        row - A Row of data that may contain aggregated values
        Returns:
        true if the given row satisfies the having spec. False otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCacheKey

        public byte[] getCacheKey()
        Description copied from interface: Cacheable
        Get a byte array used as a cache key.
        Specified by:
        getCacheKey in interface Cacheable
        Returns:
        a cache key