Class AlwaysHavingSpec
java.lang.Object
org.apache.druid.query.groupby.having.AlwaysHavingSpec
- All Implemented Interfaces:
Cacheable,HavingSpec
A "having" spec that always evaluates to true
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates if a given row satisfies the having spec.byte[]Get a byte array used as a cache key.voidsetQuery(GroupByQuery query) Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.
-
Constructor Details
-
AlwaysHavingSpec
public AlwaysHavingSpec()
-
-
Method Details
-
setQuery
Description copied from interface:HavingSpecInforms this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.- Specified by:
setQueryin interfaceHavingSpec
-
eval
Description copied from interface:HavingSpecEvaluates if a given row satisfies the having spec.- Specified by:
evalin interfaceHavingSpec- Parameters:
row- A Row of data that may contain aggregated values- Returns:
- true if the given row satisfies the having spec. False otherwise.
-
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.
-