Package org.apache.druid.query.filter
Class FallbackPredicate<T>
- java.lang.Object
-
- org.apache.druid.query.filter.FallbackPredicate<T>
-
- All Implemented Interfaces:
com.google.common.base.Predicate<T>
,Predicate<T>
public class FallbackPredicate<T> extends Object implements com.google.common.base.Predicate<T>
Predicate
that wraps another predicate and can catchClassCastException
from someComparator
and degrades into casting input to an expectedExpressionType
once an exception is encountered. Useful when processing data that might be mixed types, despite what the column capabilities might claim the type is, such as variant 'auto' types. This class is not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description FallbackPredicate(com.google.common.base.Predicate<T> delegate, ExpressionType expectedType)
-
-
-
Constructor Detail
-
FallbackPredicate
public FallbackPredicate(com.google.common.base.Predicate<T> delegate, ExpressionType expectedType)
-
-