Package org.apache.druid.math.expr
Class SettableObjectBinding
- java.lang.Object
-
- org.apache.druid.math.expr.SettableObjectBinding
-
- All Implemented Interfaces:
Expr.InputBindingInspector,Expr.ObjectBinding
public class SettableObjectBinding extends Object implements Expr.ObjectBinding
Simple map backed object binding
-
-
Constructor Summary
Constructors Constructor Description SettableObjectBinding()SettableObjectBinding(int expectedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()Objectget(String name)Get value binding for string identifier ofIdentifierExprExpressionTypegetType(String name)Get theExpressionTypefrom the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)SettableObjectBindingwithBinding(String name, Object value)SettableObjectBindingwithInspector(Expr.InputBindingInspector inspector)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
-
-
-
Method Detail
-
get
@Nullable public Object get(String name)
Description copied from interface:Expr.ObjectBindingGet value binding for string identifier ofIdentifierExpr- Specified by:
getin interfaceExpr.ObjectBinding
-
getType
@Nullable public ExpressionType getType(String name)
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
-
withBinding
public SettableObjectBinding withBinding(String name, @Nullable Object value)
-
withInspector
public SettableObjectBinding withInspector(Expr.InputBindingInspector inspector)
-
-