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
-
Constructor Summary
ModifierConstructorDescriptionprotected
EvalVisitor
(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 ValueHolder
visitVarDecimalConstant
(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:
visitFunctionCall
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitFunctionCall
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitSchemaPath
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal9Constant
public ValueHolder visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal9Constant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDecimal9Constant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal18Constant
public ValueHolder visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDecimal18Constant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal28Constant
public ValueHolder visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDecimal28Constant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDecimal38Constant
public ValueHolder visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, Integer value) throws RuntimeException - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDecimal38Constant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitVarDecimalConstant
public ValueHolder visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, Integer value) throws RuntimeException - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitVarDecimalConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDateConstant
public ValueHolder visitDateConstant(ValueExpressions.DateExpression dateExpr, Integer value) throws RuntimeException - Specified by:
visitDateConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDateConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitTimeConstant
public ValueHolder visitTimeConstant(ValueExpressions.TimeExpression timeExpr, Integer value) throws RuntimeException - Specified by:
visitTimeConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitTimeConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitTimeStampConstant
public ValueHolder visitTimeStampConstant(ValueExpressions.TimeStampExpression timestampExpr, Integer value) throws RuntimeException - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitTimeStampConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntervalYearConstant
public ValueHolder visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitIntervalYearConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitIntervalYearConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntervalDayConstant
public ValueHolder visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitIntervalDayConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitIntervalDayConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitBooleanConstant
public ValueHolder visitBooleanConstant(ValueExpressions.BooleanExpression e, Integer value) throws RuntimeException - Specified by:
visitBooleanConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitBooleanConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitNullConstant
- Specified by:
visitNullConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitNullConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public ValueHolder visitConvertExpression(ConvertExpression e, Integer value) throws RuntimeException - Specified by:
visitConvertExpression
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitConvertExpression
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitNullExpression
- Specified by:
visitNullExpression
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitNullExpression
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitFunctionHolderExpression
public ValueHolder visitFunctionHolderExpression(FunctionHolderExpression holderExpr, Integer inIndex) - Specified by:
visitFunctionHolderExpression
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitFunctionHolderExpression
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException>
-
visitBooleanOperator
- Specified by:
visitBooleanOperator
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitBooleanOperator
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException>
-
visitIfExpression
- Specified by:
visitIfExpression
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitIfExpression
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitIntConstant
public ValueHolder visitIntConstant(ValueExpressions.IntExpression e, Integer inIndex) throws RuntimeException - Specified by:
visitIntConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitIntConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitFloatConstant
public ValueHolder visitFloatConstant(ValueExpressions.FloatExpression fExpr, Integer value) throws RuntimeException - Specified by:
visitFloatConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitFloatConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitLongConstant
public ValueHolder visitLongConstant(ValueExpressions.LongExpression intExpr, Integer value) throws RuntimeException - Specified by:
visitLongConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitLongConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitDoubleConstant
public ValueHolder visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, Integer value) throws RuntimeException - Specified by:
visitDoubleConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitDoubleConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitQuotedStringConstant
public ValueHolder visitQuotedStringConstant(ValueExpressions.QuotedString e, Integer value) throws RuntimeException - Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitQuotedStringConstant
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitUnknown
Description copied from class:AbstractExprVisitor
Handles implementation-specific expressions not known to the visitor structure. Since there are no "visitFoo" methods for these "unknown" expressions, subclassses should use the functionally-equivalentinstanceof
approach to parse out these "unknown" expressions.- Specified by:
visitUnknown
in interfaceExprVisitor<ValueHolder,
Integer, RuntimeException> - Overrides:
visitUnknown
in classAbstractExprVisitor<ValueHolder,
Integer, RuntimeException> - Throws:
RuntimeException
-
visitValueVectorReadExpression
protected ValueHolder visitValueVectorReadExpression(ValueVectorReadExpression e, Integer inIndex) throws RuntimeException - Throws:
RuntimeException
-