Class AbstractExprVisitor<T,VAL,EXCEP extends Exception>
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<T,VAL,EXCEP>
- All Implemented Interfaces:
ExprVisitor<T,
VAL, EXCEP>
- Direct Known Subclasses:
AbstractExecExprVisitor
,CloneVisitor
,CompareFunctionsProcessor
,ConditionalExprOptimizer
,DrillExprToDeltaTranslator
,DrillExprToIcebergTranslator
,DruidCompareFunctionProcessor
,DruidFilterBuilder
,ExpressionStringBuilder
,ExprToRex
,FilterBuilder
,FilterEvaluatorUtils.FieldReferenceFinder
,HashVisitor
,HBaseFilterBuilder
,InfoSchemaFilterBuilder
,InterpreterEvaluator.EvalVisitor
,KafkaPartitionScanSpecBuilder
,MongoCompareFunctionProcessor
,MongoFilterBuilder
,PathInExpr
,StatisticsProvider
public abstract class AbstractExprVisitor<T,VAL,EXCEP extends Exception>
extends Object
implements ExprVisitor<T,VAL,EXCEP>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitAnyValueExpression
(AnyValueExpression e, VAL value) visitBooleanOperator
(BooleanOperator op, VAL value) visitCastExpression
(CastExpression e, VAL value) visitConvertExpression
(ConvertExpression e, VAL value) visitDateConstant
(ValueExpressions.DateExpression intExpr, VAL value) visitDecimal18Constant
(ValueExpressions.Decimal18Expression decExpr, VAL value) visitDecimal28Constant
(ValueExpressions.Decimal28Expression decExpr, VAL value) visitDecimal38Constant
(ValueExpressions.Decimal38Expression decExpr, VAL value) visitDecimal9Constant
(ValueExpressions.Decimal9Expression decExpr, VAL value) visitDoubleConstant
(ValueExpressions.DoubleExpression dExpr, VAL value) visitFloatConstant
(ValueExpressions.FloatExpression fExpr, VAL value) visitFunctionCall
(FunctionCall call, VAL value) visitFunctionHolderExpression
(FunctionHolderExpression holder, VAL value) visitIfExpression
(IfExpression ifExpr, VAL value) visitIntConstant
(ValueExpressions.IntExpression intExpr, VAL value) visitIntervalDayConstant
(ValueExpressions.IntervalDayExpression intExpr, VAL value) visitIntervalYearConstant
(ValueExpressions.IntervalYearExpression intExpr, VAL value) visitLongConstant
(ValueExpressions.LongExpression intExpr, VAL value) visitNullConstant
(TypedNullConstant e, VAL value) visitNullExpression
(NullExpression e, VAL value) visitSchemaPath
(SchemaPath path, VAL value) visitTimeConstant
(ValueExpressions.TimeExpression intExpr, VAL value) visitTimeStampConstant
(ValueExpressions.TimeStampExpression intExpr, VAL value) visitTypedFieldExpr
(TypedFieldExpr e, VAL value) visitUnknown
(LogicalExpression e, VAL value) Handles implementation-specific expressions not known to the visitor structure.visitVarDecimalConstant
(ValueExpressions.VarDecimalExpression decExpr, VAL value)
-
Constructor Details
-
AbstractExprVisitor
public AbstractExprVisitor()
-
-
Method Details
-
visitFunctionCall
- Specified by:
visitFunctionCall
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitFunctionHolderExpression
- Specified by:
visitFunctionHolderExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitIfExpression
- Specified by:
visitIfExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitBooleanOperator
- Specified by:
visitBooleanOperator
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitFloatConstant
- Specified by:
visitFloatConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitIntConstant
- Specified by:
visitIntConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitLongConstant
- Specified by:
visitLongConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDecimal9Constant
- Specified by:
visitDecimal9Constant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDecimal18Constant
public T visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, VAL value) throws EXCEP - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDecimal28Constant
public T visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, VAL value) throws EXCEP - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDecimal38Constant
public T visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, VAL value) throws EXCEP - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitVarDecimalConstant
public T visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, VAL value) throws EXCEP - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDateConstant
- Specified by:
visitDateConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitTimeConstant
- Specified by:
visitTimeConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitTimeStampConstant
public T visitTimeStampConstant(ValueExpressions.TimeStampExpression intExpr, VAL value) throws EXCEP - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitIntervalYearConstant
public T visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, VAL value) throws EXCEP - Specified by:
visitIntervalYearConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitIntervalDayConstant
public T visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, VAL value) throws EXCEP - Specified by:
visitIntervalDayConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitDoubleConstant
- Specified by:
visitDoubleConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitBooleanConstant
- Specified by:
visitBooleanConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitQuotedStringConstant
- Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitCastExpression
- Specified by:
visitCastExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitConvertExpression
- Specified by:
visitConvertExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitAnyValueExpression
- Specified by:
visitAnyValueExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitNullConstant
- Specified by:
visitNullConstant
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitNullExpression
- Specified by:
visitNullExpression
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitUnknown
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<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitParameter
- Specified by:
visitParameter
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-
visitTypedFieldExpr
- Specified by:
visitTypedFieldExpr
in interfaceExprVisitor<T,
VAL, EXCEP extends Exception> - Throws:
EXCEP extends Exception
-