Class ExpressionValidator
java.lang.Object
org.apache.drill.common.expression.visitors.ExpressionValidator
- All Implemented Interfaces:
ExprVisitor<Void,
ErrorCollector, RuntimeException>
public class ExpressionValidator
extends Object
implements ExprVisitor<Void,ErrorCollector,RuntimeException>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitBooleanOperator
(BooleanOperator op, ErrorCollector errors) visitCastExpression
(CastExpression e, ErrorCollector value) visitDateConstant
(ValueExpressions.DateExpression intExpr, ErrorCollector errors) visitDecimal18Constant
(ValueExpressions.Decimal18Expression decExpr, ErrorCollector errors) visitDecimal28Constant
(ValueExpressions.Decimal28Expression decExpr, ErrorCollector errors) visitDecimal38Constant
(ValueExpressions.Decimal38Expression decExpr, ErrorCollector errors) visitDecimal9Constant
(ValueExpressions.Decimal9Expression decExpr, ErrorCollector errors) visitDoubleConstant
(ValueExpressions.DoubleExpression dExpr, ErrorCollector errors) visitFloatConstant
(ValueExpressions.FloatExpression fExpr, ErrorCollector value) visitFunctionCall
(FunctionCall call, ErrorCollector errors) visitFunctionHolderExpression
(FunctionHolderExpression holder, ErrorCollector errors) visitIfExpression
(IfExpression ifExpr, ErrorCollector errors) visitIntConstant
(ValueExpressions.IntExpression intExpr, ErrorCollector value) visitIntervalDayConstant
(ValueExpressions.IntervalDayExpression intExpr, ErrorCollector errors) visitLongConstant
(ValueExpressions.LongExpression intExpr, ErrorCollector errors) visitNullConstant
(TypedNullConstant e, ErrorCollector value) visitNullExpression
(NullExpression e, ErrorCollector value) visitSchemaPath
(SchemaPath path, ErrorCollector errors) visitTimeConstant
(ValueExpressions.TimeExpression intExpr, ErrorCollector errors) visitTimeStampConstant
(ValueExpressions.TimeStampExpression intExpr, ErrorCollector errors) visitTypedFieldExpr
(TypedFieldExpr e, ErrorCollector value) visitUnknown
(LogicalExpression e, ErrorCollector value) visitVarDecimalConstant
(ValueExpressions.VarDecimalExpression decExpr, ErrorCollector errors)
-
Constructor Details
-
ExpressionValidator
public ExpressionValidator()
-
-
Method Details
-
visitFunctionCall
- Specified by:
visitFunctionCall
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitFunctionHolderExpression
public Void visitFunctionHolderExpression(FunctionHolderExpression holder, ErrorCollector errors) throws RuntimeException - Specified by:
visitFunctionHolderExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitBooleanOperator
- Specified by:
visitBooleanOperator
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitIfExpression
- Specified by:
visitIfExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitIntConstant
public Void visitIntConstant(ValueExpressions.IntExpression intExpr, ErrorCollector value) throws RuntimeException - Specified by:
visitIntConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitFloatConstant
public Void visitFloatConstant(ValueExpressions.FloatExpression fExpr, ErrorCollector value) throws RuntimeException - Specified by:
visitFloatConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitLongConstant
public Void visitLongConstant(ValueExpressions.LongExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitLongConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDecimal9Constant
public Void visitDecimal9Constant(ValueExpressions.Decimal9Expression decExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDecimal9Constant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDecimal18Constant
public Void visitDecimal18Constant(ValueExpressions.Decimal18Expression decExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDecimal18Constant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDecimal28Constant
public Void visitDecimal28Constant(ValueExpressions.Decimal28Expression decExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDecimal28Constant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDecimal38Constant
public Void visitDecimal38Constant(ValueExpressions.Decimal38Expression decExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDecimal38Constant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitVarDecimalConstant
public Void visitVarDecimalConstant(ValueExpressions.VarDecimalExpression decExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitVarDecimalConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDateConstant
public Void visitDateConstant(ValueExpressions.DateExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDateConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitTimeConstant
public Void visitTimeConstant(ValueExpressions.TimeExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitTimeConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitIntervalYearConstant
public Void visitIntervalYearConstant(ValueExpressions.IntervalYearExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitIntervalYearConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitIntervalDayConstant
public Void visitIntervalDayConstant(ValueExpressions.IntervalDayExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitIntervalDayConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitTimeStampConstant
public Void visitTimeStampConstant(ValueExpressions.TimeStampExpression intExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitTimeStampConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitDoubleConstant
public Void visitDoubleConstant(ValueExpressions.DoubleExpression dExpr, ErrorCollector errors) throws RuntimeException - Specified by:
visitDoubleConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitBooleanConstant
public Void visitBooleanConstant(ValueExpressions.BooleanExpression e, ErrorCollector errors) throws RuntimeException - Specified by:
visitBooleanConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitQuotedStringConstant
public Void visitQuotedStringConstant(ValueExpressions.QuotedString e, ErrorCollector errors) throws RuntimeException - Specified by:
visitQuotedStringConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitUnknown
- Specified by:
visitUnknown
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitCastExpression
- Specified by:
visitCastExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitNullConstant
- Specified by:
visitNullConstant
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitNullExpression
- Specified by:
visitNullExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public Void visitConvertExpression(ConvertExpression e, ErrorCollector value) throws RuntimeException - Specified by:
visitConvertExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitAnyValueExpression
public Void visitAnyValueExpression(AnyValueExpression e, ErrorCollector value) throws RuntimeException - Specified by:
visitAnyValueExpression
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitParameter
public Void visitParameter(ValueExpressions.ParameterExpression e, ErrorCollector value) throws RuntimeException - Specified by:
visitParameter
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-
visitTypedFieldExpr
- Specified by:
visitTypedFieldExpr
in interfaceExprVisitor<Void,
ErrorCollector, RuntimeException> - Throws:
RuntimeException
-