Class NoopLimitSpec
- java.lang.Object
-
- org.apache.druid.query.groupby.orderby.NoopLimitSpec
-
-
Field Summary
Fields Modifier and Type Field Description static NoopLimitSpec
INSTANCE
-
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.boolean
equals(Object other)
LimitSpec
filterColumns(Set<String> names)
Discard sorting columns not contained in given set.byte[]
getCacheKey()
Get a byte array used as a cache key.int
hashCode()
static NoopLimitSpec
instance()
String
toString()
-
-
-
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:LimitSpec
Returns 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: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 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:Cacheable
Get a byte array used as a cache key.- Specified by:
getCacheKey
in interfaceCacheable
- Returns:
- a cache key
-
-