Package org.apache.druid.query.filter
Class FallbackPredicate<T>
java.lang.Object
org.apache.druid.query.filter.FallbackPredicate<T>
- All Implemented Interfaces:
DruidObjectPredicate<T>
Predicate that wraps another predicate and can catch ClassCastException from some
Comparator and degrades into casting input to an expected ExpressionType 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
ConstructorsConstructorDescriptionFallbackPredicate(DruidObjectPredicate<T> delegate, ExpressionType expectedType) -
Method Summary
-
Constructor Details
-
FallbackPredicate
-
-
Method Details
-
apply
- Specified by:
applyin interfaceDruidObjectPredicate<T>
-