Package org.apache.druid.query.filter
Class StringPredicateDruidPredicateFactory
- java.lang.Object
-
- org.apache.druid.query.filter.StringPredicateDruidPredicateFactory
-
- All Implemented Interfaces:
DruidPredicateFactory
public class StringPredicateDruidPredicateFactory extends Object implements DruidPredicateFactory
-
-
Constructor Summary
Constructors Constructor Description StringPredicateDruidPredicateFactory(com.google.common.base.Predicate<String> predicate, boolean isNullInputUnknown)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static StringPredicateDruidPredicateFactory
equalTo(String value)
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()
static StringPredicateDruidPredicateFactory
of(com.google.common.base.Predicate<String> predicate, boolean isNullInputUnknown)
-
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
-
-
-
-
Constructor Detail
-
StringPredicateDruidPredicateFactory
public StringPredicateDruidPredicateFactory(com.google.common.base.Predicate<String> predicate, boolean isNullInputUnknown)
-
-
Method Detail
-
equalTo
public static StringPredicateDruidPredicateFactory equalTo(@Nullable String value)
-
of
public static StringPredicateDruidPredicateFactory of(@Nullable com.google.common.base.Predicate<String> predicate, boolean isNullInputUnknown)
-
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
-
-