Class NoopLimitSpec

    • Method Detail

      • build

        public com.google.common.base.Function<Sequence<ResultRow>,​Sequence<ResultRow>> build​(GroupByQuery query)
        Description copied from interface: LimitSpec
        Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.
        Specified by:
        build in interface LimitSpec
        Parameters:
        query - the query that this limit spec belongs to
        Returns:
        limit function
      • filterColumns

        public LimitSpec filterColumns​(Set<String> names)
        Description copied from interface: LimitSpec
        Discard sorting columns not contained in given set. This is used when generating new queries, e.g. to process subtotal spec in GroupBy query.
        Specified by:
        filterColumns in interface LimitSpec
        Parameters:
        names - columns names to keep
        Returns:
        new LimitSpec that works with fitlered set of columns
      • 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