private static class SqlValidatorImpl.NavigationExpander extends SqlValidatorImpl.NavigationModifier
Examples:
PREV(A.price + A.amount) →
PREV(A.price) + PREV(A.amount)
FIRST(A.price * 2) → FIRST(A.PRICE) * 2
SqlShuttle.CallCopyingArgHandlerSqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R>| Modifier and Type | Field and Description |
|---|---|
(package private) SqlNode |
offset |
(package private) SqlOperator |
op |
| Constructor and Description |
|---|
NavigationExpander() |
NavigationExpander(SqlOperator operator,
SqlNode offset) |
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
visit(SqlCall call)
Visits a call to a
SqlOperator. |
SqlNode |
visit(SqlIdentifier id)
Visits an identifier.
|
gofinal SqlOperator op
final SqlNode offset
NavigationExpander()
NavigationExpander(SqlOperator operator, SqlNode offset)
public SqlNode visit(SqlCall call)
SqlVisitorSqlOperator.visit in interface SqlVisitor<SqlNode>visit in class SqlShuttlecall - CallSqlCall.accept(SqlVisitor)public SqlNode visit(SqlIdentifier id)
SqlVisitorvisit in interface SqlVisitor<SqlNode>visit in class SqlShuttleid - identifierSqlIdentifier.accept(SqlVisitor)Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.