Class NoopLimitSpec

java.lang.Object
org.apache.druid.query.groupby.orderby.NoopLimitSpec
All Implemented Interfaces:
Cacheable, LimitSpec

public final class NoopLimitSpec extends Object implements LimitSpec
  • Field Details

  • Method Details

    • instance

      public static NoopLimitSpec instance()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • 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:
      bytes to be used as cache key - or null if this object should not be cached.