Package org.apache.druid.math.expr
Class InputBindings.BestEffortInputBindings
java.lang.Object
org.apache.druid.math.expr.InputBindings.BestEffortInputBindings
- All Implemented Interfaces:
Expr.InputBindingInspector,Expr.ObjectBinding
- Enclosing class:
- InputBindings
public abstract static class InputBindings.BestEffortInputBindings
extends Object
implements Expr.ObjectBinding
Expr.ObjectBinding backed by a cache populated by ExprEval.bestEffortOf(Object) for when the input
type information is totally unknown, for a single row worth of values. The values are cached so that asking for a
type and getting the value of some input do not repeat computations.
This type is not thread-safe, and not suitable for re-use for processing multiple-rows due to the presence of the
result cache.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet value binding for string identifier ofIdentifierExprGet theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Constructor Details
-
BestEffortInputBindings
public BestEffortInputBindings()
-
-
Method Details
-
get
Description copied from interface:Expr.ObjectBindingGet value binding for string identifier ofIdentifierExpr- Specified by:
getin interfaceExpr.ObjectBinding
-
getType
Description copied from interface:Expr.InputBindingInspectorGet theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)- Specified by:
getTypein interfaceExpr.InputBindingInspector
-