public class BaseAlgebraVisitor<CONTEXT,RESULT> extends Object implements AlgebraVisitor<CONTEXT,RESULT>
| Constructor and Description |
|---|
BaseAlgebraVisitor() |
public void preHook(CONTEXT ctx, Stack<Expr> stack, Expr expr) throws PlanningException
PlanningExceptionpublic RESULT postHook(CONTEXT ctx, Stack<Expr> stack, Expr expr, RESULT current) throws PlanningException
PlanningExceptionpublic RESULT visit(CONTEXT ctx, Stack<Expr> stack, Expr expr) throws PlanningException
stack - The stack contains the upper operators' type.expr - The visiting relational operatorPlanningExceptionpublic RESULT visitSetSession(CONTEXT ctx, Stack<Expr> stack, SetSession expr) throws PlanningException
visitSetSession in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitProjection(CONTEXT ctx, Stack<Expr> stack, Projection expr) throws PlanningException
visitProjection in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitLimit(CONTEXT ctx, Stack<Expr> stack, Limit expr) throws PlanningException
visitLimit in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitSort(CONTEXT ctx, Stack<Expr> stack, Sort expr) throws PlanningException
visitSort in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitHaving(CONTEXT ctx, Stack<Expr> stack, Having expr) throws PlanningException
visitHaving in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitGroupBy(CONTEXT ctx, Stack<Expr> stack, Aggregation expr) throws PlanningException
visitGroupBy in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitJoin(CONTEXT ctx, Stack<Expr> stack, Join expr) throws PlanningException
visitJoin in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitFilter(CONTEXT ctx, Stack<Expr> stack, Selection expr) throws PlanningException
visitFilter in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitUnion(CONTEXT ctx, Stack<Expr> stack, SetOperation expr) throws PlanningException
visitUnion in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitExcept(CONTEXT ctx, Stack<Expr> stack, SetOperation expr) throws PlanningException
visitExcept in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitIntersect(CONTEXT ctx, Stack<Expr> stack, SetOperation expr) throws PlanningException
visitIntersect in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitSimpleTableSubQuery(CONTEXT ctx, Stack<Expr> stack, SimpleTableSubQuery expr) throws PlanningException
visitSimpleTableSubQuery in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitTableSubQuery(CONTEXT ctx, Stack<Expr> stack, TablePrimarySubQuery expr) throws PlanningException
visitTableSubQuery in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitRelationList(CONTEXT ctx, Stack<Expr> stack, RelationList expr) throws PlanningException
visitRelationList in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitRelation(CONTEXT ctx, Stack<Expr> stack, Relation expr) throws PlanningException
visitRelation in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitScalarSubQuery(CONTEXT ctx, Stack<Expr> stack, ScalarSubQuery expr) throws PlanningException
visitScalarSubQuery in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitExplain(CONTEXT ctx, Stack<Expr> stack, Explain expr) throws PlanningException
visitExplain in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitCreateDatabase(CONTEXT ctx, Stack<Expr> stack, CreateDatabase expr) throws PlanningException
visitCreateDatabase in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitDropDatabase(CONTEXT ctx, Stack<Expr> stack, DropDatabase expr) throws PlanningException
visitDropDatabase in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitCreateTable(CONTEXT ctx, Stack<Expr> stack, CreateTable expr) throws PlanningException
visitCreateTable in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitDropTable(CONTEXT ctx, Stack<Expr> stack, DropTable expr) throws PlanningException
visitDropTable in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitAlterTablespace(CONTEXT ctx, Stack<Expr> stack, AlterTablespace expr) throws PlanningException
visitAlterTablespace in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitAlterTable(CONTEXT ctx, Stack<Expr> stack, AlterTable expr) throws PlanningException
visitAlterTable in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitTruncateTable(CONTEXT ctx, Stack<Expr> stack, TruncateTable expr) throws PlanningException
visitTruncateTable in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitInsert(CONTEXT ctx, Stack<Expr> stack, Insert expr) throws PlanningException
visitInsert in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitAnd(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitAnd in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitOr(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitOr in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitNot(CONTEXT ctx, Stack<Expr> stack, NotExpr expr) throws PlanningException
visitNot in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitEquals(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitEquals in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitNotEquals(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitNotEquals in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitLessThan(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitLessThan in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitLessThanOrEquals(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitLessThanOrEquals in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitGreaterThan(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitGreaterThan in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitGreaterThanOrEquals(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitGreaterThanOrEquals in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitBetween(CONTEXT ctx, Stack<Expr> stack, BetweenPredicate expr) throws PlanningException
visitBetween in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitCaseWhen(CONTEXT ctx, Stack<Expr> stack, CaseWhenPredicate expr) throws PlanningException
visitCaseWhen in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitIsNullPredicate(CONTEXT ctx, Stack<Expr> stack, IsNullPredicate expr) throws PlanningException
visitIsNullPredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitInPredicate(CONTEXT ctx, Stack<Expr> stack, InPredicate expr) throws PlanningException
visitInPredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitValueListExpr(CONTEXT ctx, Stack<Expr> stack, ValueListExpr expr) throws PlanningException
visitValueListExpr in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitExistsPredicate(CONTEXT ctx, Stack<Expr> stack, ExistsPredicate expr) throws PlanningException
visitExistsPredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitLikePredicate(CONTEXT ctx, Stack<Expr> stack, PatternMatchPredicate expr) throws PlanningException
visitLikePredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitSimilarToPredicate(CONTEXT ctx, Stack<Expr> stack, PatternMatchPredicate expr) throws PlanningException
visitSimilarToPredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitRegexpPredicate(CONTEXT ctx, Stack<Expr> stack, PatternMatchPredicate expr) throws PlanningException
visitRegexpPredicate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitConcatenate(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitConcatenate in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitPlus(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitPlus in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitMinus(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitMinus in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitMultiply(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitMultiply in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitDivide(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitDivide in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitModular(CONTEXT ctx, Stack<Expr> stack, BinaryOperator expr) throws PlanningException
visitModular in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitSign(CONTEXT ctx, Stack<Expr> stack, SignedExpr expr) throws PlanningException
visitSign in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitColumnReference(CONTEXT ctx, Stack<Expr> stack, ColumnReferenceExpr expr) throws PlanningException
visitColumnReference in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitTargetExpr(CONTEXT ctx, Stack<Expr> stack, NamedExpr expr) throws PlanningException
visitTargetExpr in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitFunction(CONTEXT ctx, Stack<Expr> stack, FunctionExpr expr) throws PlanningException
visitFunction in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitQualifiedAsterisk(CONTEXT ctx, Stack<Expr> stack, QualifiedAsteriskExpr expr) throws PlanningException
visitQualifiedAsterisk in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitCountRowsFunction(CONTEXT ctx, Stack<Expr> stack, CountRowsFunctionExpr expr) throws PlanningException
visitCountRowsFunction in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitGeneralSetFunction(CONTEXT ctx, Stack<Expr> stack, GeneralSetFunctionExpr expr) throws PlanningException
visitGeneralSetFunction in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitWindowFunction(CONTEXT ctx, Stack<Expr> stack, WindowFunctionExpr expr) throws PlanningException
visitWindowFunction in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitDataType(CONTEXT ctx, Stack<Expr> stack, DataTypeExpr expr) throws PlanningException
visitDataType in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitCastExpr(CONTEXT ctx, Stack<Expr> stack, CastExpr expr) throws PlanningException
visitCastExpr in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitLiteral(CONTEXT ctx, Stack<Expr> stack, LiteralValue expr) throws PlanningException
visitLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitNullLiteral(CONTEXT ctx, Stack<Expr> stack, NullLiteral expr) throws PlanningException
visitNullLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitTimestampLiteral(CONTEXT ctx, Stack<Expr> stack, TimestampLiteral expr) throws PlanningException
visitTimestampLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitIntervalLiteral(CONTEXT ctx, Stack<Expr> stack, IntervalLiteral expr) throws PlanningException
visitIntervalLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitTimeLiteral(CONTEXT ctx, Stack<Expr> stack, TimeLiteral expr) throws PlanningException
visitTimeLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionpublic RESULT visitDateLiteral(CONTEXT ctx, Stack<Expr> stack, DateLiteral expr) throws PlanningException
visitDateLiteral in interface AlgebraVisitor<CONTEXT,RESULT>PlanningExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.