Package org.apache.druid.query.filter
Class SelectorPredicateFactory
- java.lang.Object
-
- org.apache.druid.query.filter.SelectorPredicateFactory
-
- All Implemented Interfaces:
DruidPredicateFactory
public class SelectorPredicateFactory extends Object implements DruidPredicateFactory
ADruidPredicateFactory
that checks if input values equal a specific, provided value. Initialization work is lazy and thread-safe.
-
-
Constructor Summary
Constructors Constructor Description SelectorPredicateFactory(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
isNullInputUnknown()
Indicator for if null inputs should be considered 'unknown' matches when used for filter matching withValueMatcher.matches(boolean)
,VectorValueMatcher.match(ReadableVectorMatch, boolean)
, orBitmapColumnIndex.computeBitmapResult(BitmapResultFactory, boolean)
.DruidDoublePredicate
makeDoublePredicate()
DruidFloatPredicate
makeFloatPredicate()
DruidLongPredicate
makeLongPredicate()
com.google.common.base.Predicate<String>
makeStringPredicate()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.filter.DruidPredicateFactory
makeArrayPredicate, makeObjectPredicate
-
-
-
-
Method Detail
-
makeStringPredicate
public com.google.common.base.Predicate<String> makeStringPredicate()
- Specified by:
makeStringPredicate
in interfaceDruidPredicateFactory
-
makeLongPredicate
public DruidLongPredicate makeLongPredicate()
- Specified by:
makeLongPredicate
in interfaceDruidPredicateFactory
-
makeFloatPredicate
public DruidFloatPredicate makeFloatPredicate()
- Specified by:
makeFloatPredicate
in interfaceDruidPredicateFactory
-
makeDoublePredicate
public DruidDoublePredicate makeDoublePredicate()
- Specified by:
makeDoublePredicate
in interfaceDruidPredicateFactory
-
isNullInputUnknown
public boolean isNullInputUnknown()
Description copied from interface:DruidPredicateFactory
Indicator for if null inputs should be considered 'unknown' matches when used for filter matching withValueMatcher.matches(boolean)
,VectorValueMatcher.match(ReadableVectorMatch, boolean)
, orBitmapColumnIndex.computeBitmapResult(BitmapResultFactory, boolean)
. If returns true, unknown (null) inputs can automatically be considered matches ifincludeUnknown
is set to true on these methods, else null inputs should be evaluated against the predicate as any other value to determine a match- Specified by:
isNullInputUnknown
in interfaceDruidPredicateFactory
-
-