Class NoopLimitSpec
- java.lang.Object
-
- org.apache.druid.query.groupby.orderby.NoopLimitSpec
-
-
Field Summary
Fields Modifier and Type Field Description static NoopLimitSpecINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>build(GroupByQuery query)Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.booleanequals(Object other)LimitSpecfilterColumns(Set<String> names)Discard sorting columns not contained in given set.byte[]getCacheKey()Get a byte array used as a cache key.inthashCode()static NoopLimitSpecinstance()StringtoString()
-
-
-
Field Detail
-
INSTANCE
public static final NoopLimitSpec INSTANCE
-
-
Method Detail
-
instance
public static NoopLimitSpec 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
public LimitSpec filterColumns(Set<String> names)
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
-
getCacheKey
public byte[] getCacheKey()
Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- a cache key
-
-