Class InterpreterEvaluator.EvalVisitor
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<ValueHolder,Integer,RuntimeException>
org.apache.drill.exec.expr.fn.interpreter.InterpreterEvaluator.EvalVisitor
- All Implemented Interfaces:
ExprVisitor<ValueHolder,Integer, RuntimeException>
- Enclosing class:
InterpreterEvaluator
public static class InterpreterEvaluator.EvalVisitor
extends AbstractExprVisitor<ValueHolder,Integer,RuntimeException>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEvalVisitor(VectorAccessible incoming, UdfUtilities udfUtilities) -
Method Summary
Modifier and TypeMethodDescriptionvisitBooleanOperator(BooleanOperator op, Integer inIndex) visitConvertExpression(ConvertExpression e, Integer value) visitDateConstant(ValueExpressions.DateExpression dateExpr, Integer value) visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, Integer value) visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, Integer value) visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, Integer value) visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, Integer value) visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, Integer value) visitFloatConstant(ValueExpressions.FloatExpression fExpr, Integer value) visitFunctionCall(FunctionCall call, Integer value) visitFunctionHolderExpression(FunctionHolderExpression holderExpr, Integer inIndex) visitIfExpression(IfExpression ifExpr, Integer inIndex) visitIntConstant(ValueExpressions.IntExpression e, Integer inIndex) visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, Integer value) visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, Integer value) visitLongConstant(ValueExpressions.LongExpression intExpr, Integer value) visitNullConstant(TypedNullConstant e, Integer value) visitNullExpression(NullExpression e, Integer value) visitSchemaPath(SchemaPath path, Integer value) visitTimeConstant(ValueExpressions.TimeExpression timeExpr, Integer value) visitTimeStampConstant(ValueExpressions.TimeStampExpression timestampExpr, Integer value) visitUnknown(LogicalExpression e, Integer inIndex) Handles implementation-specific expressions not known to the visitor structure.protected ValueHoldervisitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, Integer value) Methods inherited from class org.apache.drill.common.expression.visitors.AbstractExprVisitor
visitAnyValueExpression, visitCastExpression, visitParameter, visitTypedFieldExpr
-
Constructor Details
-
EvalVisitor
-
-
Method Details
-
visitFunctionCall
- Specified by:
visitFunctionCallin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitFunctionCallin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPathin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitSchemaPathin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal9Constant
public ValueHolder visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal9Constantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDecimal9Constantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal18Constant
public ValueHolder visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal18Constantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDecimal18Constantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal28Constant
public ValueHolder visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal28Constantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDecimal28Constantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal38Constant
public ValueHolder visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal38Constantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDecimal38Constantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitVarDecimalConstant
public ValueHolder visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, Integer value) throws RuntimeException - Specified by:
visitVarDecimalConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitVarDecimalConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDateConstant
public ValueHolder visitDateConstant(ValueExpressions.DateExpression dateExpr, Integer value) throws RuntimeException - Specified by:
visitDateConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDateConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitTimeConstant
public ValueHolder visitTimeConstant(ValueExpressions.TimeExpression timeExpr, Integer value) throws RuntimeException - Specified by:
visitTimeConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitTimeConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitTimeStampConstant
public ValueHolder visitTimeStampConstant(ValueExpressions.TimeStampExpression timestampExpr, Integer value) throws RuntimeException - Specified by:
visitTimeStampConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitTimeStampConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntervalYearConstant
public ValueHolder visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitIntervalYearConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitIntervalYearConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntervalDayConstant
public ValueHolder visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitIntervalDayConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitIntervalDayConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitBooleanConstant
public ValueHolder visitBooleanConstant(ValueExpressions.BooleanExpression e, Integer value) throws RuntimeException - Specified by:
visitBooleanConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitBooleanConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitNullConstant
- Specified by:
visitNullConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitNullConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public ValueHolder visitConvertExpression(ConvertExpression e, Integer value) throws RuntimeException - Specified by:
visitConvertExpressionin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitConvertExpressionin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitNullExpression
- Specified by:
visitNullExpressionin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitNullExpressionin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitFunctionHolderExpression
public ValueHolder visitFunctionHolderExpression(FunctionHolderExpression holderExpr, Integer inIndex) - Specified by:
visitFunctionHolderExpressionin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitFunctionHolderExpressionin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException>
-
visitBooleanOperator
- Specified by:
visitBooleanOperatorin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitBooleanOperatorin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException>
-
visitIfExpression
- Specified by:
visitIfExpressionin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitIfExpressionin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntConstant
public ValueHolder visitIntConstant(ValueExpressions.IntExpression e, Integer inIndex) throws RuntimeException - Specified by:
visitIntConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitIntConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitFloatConstant
public ValueHolder visitFloatConstant(ValueExpressions.FloatExpression fExpr, Integer value) throws RuntimeException - Specified by:
visitFloatConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitFloatConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitLongConstant
public ValueHolder visitLongConstant(ValueExpressions.LongExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitLongConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitLongConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitDoubleConstant
public ValueHolder visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, Integer value) throws RuntimeException - Specified by:
visitDoubleConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitDoubleConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitQuotedStringConstant
public ValueHolder visitQuotedStringConstant(ValueExpressions.QuotedString e, Integer value) throws RuntimeException - Specified by:
visitQuotedStringConstantin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitQuotedStringConstantin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitUnknown
Description copied from class:AbstractExprVisitorHandles implementation-specific expressions not known to the visitor structure. Since there are no "visitFoo" methods for these "unknown" expressions, subclassses should use the functionally-equivalentinstanceofapproach to parse out these "unknown" expressions.- Specified by:
visitUnknownin interfaceExprVisitor<ValueHolder,Integer, RuntimeException> - Overrides:
visitUnknownin classAbstractExprVisitor<ValueHolder,Integer, RuntimeException> - Throws:
RuntimeException
-
visitValueVectorReadExpression
protected ValueHolder visitValueVectorReadExpression(ValueVectorReadExpression e, Integer inIndex) throws RuntimeException - Throws:
RuntimeException
-