Class DimFilterHavingSpec
- java.lang.Object
-
- org.apache.druid.query.groupby.having.DimFilterHavingSpec
-
- All Implemented Interfaces:
Cacheable,HavingSpec
public class DimFilterHavingSpec extends Object implements HavingSpec
-
-
Constructor Summary
Constructors Constructor Description DimFilterHavingSpec(DimFilter dimFilter, Boolean finalize)
-
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.DimFiltergetDimFilter()inthashCode()booleanisFinalize()voidsetQuery(GroupByQuery query)Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.StringtoString()
-
-
-
Method Detail
-
getDimFilter
public DimFilter getDimFilter()
-
isFinalize
public boolean isFinalize()
-
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
-
-