Class NoopLimitSpec
java.lang.Object
org.apache.druid.query.groupby.orderby.NoopLimitSpec
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild(GroupByQuery query) Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.booleanfilterColumns(Set<String> names) Discard sorting columns not contained in given set.byte[]Get a byte array used as a cache key.inthashCode()static NoopLimitSpecinstance()toString()
-
Field Details
-
INSTANCE
-
-
Method Details
-
instance
-
build
public com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>> build(GroupByQuery query) Description copied from interface:LimitSpecReturns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions. -
filterColumns
Description copied from interface:LimitSpecDiscard 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:
filterColumnsin interfaceLimitSpec- Parameters:
names- columns names to keep- Returns:
- new LimitSpec that works with fitlered set of columns
-
toString
-
equals
-
hashCode
public int hashCode() -
getCacheKey
public byte[] getCacheKey()Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- bytes to be used as cache key - or null if this object should not be cached.
-