Class DimensionSelectorHavingSpec
- java.lang.Object
-
- org.apache.druid.query.groupby.having.DimensionSelectorHavingSpec
-
- All Implemented Interfaces:
Cacheable
,HavingSpec
public class DimensionSelectorHavingSpec extends Object implements HavingSpec
-
-
Constructor Summary
Constructors Constructor Description DimensionSelectorHavingSpec(String dimName, String value, ExtractionFn extractionFn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
eval(ResultRow row)
Evaluates if a given row satisfies the having spec.byte[]
getCacheKey()
Get a byte array used as a cache key.String
getDimension()
ExtractionFn
getExtractionFn()
String
getValue()
int
hashCode()
void
setQuery(GroupByQuery query)
Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.String
toString()
-
-
-
Constructor Detail
-
DimensionSelectorHavingSpec
public DimensionSelectorHavingSpec(String dimName, String value, ExtractionFn extractionFn)
-
-
Method Detail
-
getValue
public String getValue()
-
getDimension
public String getDimension()
-
getExtractionFn
public ExtractionFn getExtractionFn()
-
setQuery
public void setQuery(GroupByQuery query)
Description copied from interface:HavingSpec
Informs this HavingSpec that rows passed to "eval" will originate from a particular groupBy query.- Specified by:
setQuery
in interfaceHavingSpec
-
eval
public boolean eval(ResultRow row)
Description copied from interface:HavingSpec
Evaluates if a given row satisfies the having spec.- Specified by:
eval
in 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:Cacheable
Get a byte array used as a cache key.- Specified by:
getCacheKey
in interfaceCacheable
- Returns:
- a cache key
-
-