protected class SqlShuttle.CallCopyingArgHandler extends Object implements SqlBasicVisitor.ArgHandler<SqlNode>
SqlBasicVisitor.ArgHandler
that deep-copies SqlCalls and their operands.| Constructor and Description |
|---|
SqlShuttle.CallCopyingArgHandler(SqlCall call,
boolean alwaysCopy) |
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
result()
Returns the result of visiting all children of a call to an operator,
then the call itself.
|
SqlNode |
visitChild(SqlVisitor<SqlNode> visitor,
SqlNode expr,
int i,
SqlNode operand)
Visits a particular operand of a call, using a given visitor.
|
public SqlShuttle.CallCopyingArgHandler(SqlCall call, boolean alwaysCopy)
public SqlNode result()
SqlBasicVisitor.ArgHandlerTypically the result will be the result of the last child visited, or
(if R is Boolean) whether all children were visited
successfully.
result in interface SqlBasicVisitor.ArgHandler<SqlNode>public SqlNode visitChild(SqlVisitor<SqlNode> visitor, SqlNode expr, int i, SqlNode operand)
SqlBasicVisitor.ArgHandlervisitChild in interface SqlBasicVisitor.ArgHandler<SqlNode>Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.