Class OrHavingSpec
- java.lang.Object
-
- org.apache.druid.query.groupby.having.OrHavingSpec
-
- All Implemented Interfaces:
Cacheable,HavingSpec
public class OrHavingSpec extends Object implements HavingSpec
The logical "or" operator for the "having" clause.
-
-
Constructor Summary
Constructors Constructor Description OrHavingSpec(List<HavingSpec> havingSpecs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleaneval(ResultRow row)Evaluates if a given row satisfies the having spec.byte[]getCacheKey()Get a byte array used as a cache key.List<HavingSpec>getHavingSpecs()inthashCode()voidsetQuery(GroupByQuery query)Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.StringtoString()
-
-
-
Constructor Detail
-
OrHavingSpec
public OrHavingSpec(List<HavingSpec> havingSpecs)
-
-
Method Detail
-
getHavingSpecs
public List<HavingSpec> getHavingSpecs()
-
setQuery
public void setQuery(GroupByQuery query)
Description copied from interface:HavingSpecInforms this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.- Specified by:
setQueryin interfaceHavingSpec
-
eval
public boolean eval(ResultRow row)
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:
- a cache key
-
-