Package org.apache.druid.segment.virtual
Class ExpressionVectorInputBinding
java.lang.Object
org.apache.druid.segment.virtual.ExpressionVectorInputBinding
- All Implemented Interfaces:
Expr.InputBindingInspector,Expr.VectorInputBinding,Expr.VectorInputBindingInspector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNumeric(String name, ExpressionType type, VectorValueSelector selector) addObjectSelector(String name, ExpressionType type, VectorObjectSelector selector) intReturns an integer that uniquely identifies the current position of the underlying vector offset, if this binding is backed by a segment.intdouble[]getDoubleVector(String name) long[]getLongVector(String name) intboolean[]getNullVector(String name) Object[]getObjectVector(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)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
-
ExpressionVectorInputBinding
-
-
Method Details
-
addNumeric
public ExpressionVectorInputBinding addNumeric(String name, ExpressionType type, VectorValueSelector selector) -
addObjectSelector
public ExpressionVectorInputBinding addObjectSelector(String name, ExpressionType type, VectorObjectSelector selector) -
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
-
getObjectVector
- Specified by:
getObjectVectorin interfaceExpr.VectorInputBinding
-
getLongVector
- Specified by:
getLongVectorin interfaceExpr.VectorInputBinding
-
getDoubleVector
- Specified by:
getDoubleVectorin interfaceExpr.VectorInputBinding
-
getNullVector
- Specified by:
getNullVectorin interfaceExpr.VectorInputBinding
-
getMaxVectorSize
public int getMaxVectorSize()- Specified by:
getMaxVectorSizein interfaceExpr.VectorInputBindingInspector
-
getCurrentVectorSize
public int getCurrentVectorSize()- Specified by:
getCurrentVectorSizein interfaceExpr.VectorInputBinding
-
getCurrentVectorId
public int getCurrentVectorId()Description copied from interface:Expr.VectorInputBindingReturns an integer that uniquely identifies the current position of the underlying vector offset, if this binding is backed by a segment. This is useful for caching: it is safe to assume nothing has changed in the offset so long as the id remains the same. See also: ReadableVectorOffset (in druid-processing)- Specified by:
getCurrentVectorIdin interfaceExpr.VectorInputBinding
-