public class SqlProject extends SqlNodeBase1
Modifier and Type | Method and Description |
---|---|
SqlNode |
apply(SqlTransform transform,
SqlNode subNode) |
SqlProject |
asProject() |
SqlNode |
copy(SqlNode subNode) |
List<ColAlias> |
getCols() |
boolean |
isProject() |
static SqlNode |
project(SqlNode sqlNode,
ColAlias col)
make sure this node is a projection and add a column
|
boolean |
usesColumn(SqlColumn c) |
void |
visit(SqlNodeVisitor visitor) |
getIdScope, getNodeScope, getSubNode
asCoalesce, asDistinct, asInnerJoin, asJoin, asLeftJoin, asRestrict, asSelectBlock, asTable, getAliasName, isCoalesce, isDistinct, isInnerJoin, isJoin, isLeftJoin, isRestrict, isSelectBlock, isTable, output, output, tablesInvolved, toString
addNote, addNotes, getNotes, hasNotes, hasOneNote
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNote, addNotes, getNotes, hasNotes, hasOneNote
public static SqlNode project(SqlNode sqlNode, ColAlias col)
public boolean isProject()
isProject
in interface SqlNode
isProject
in class SqlNodeBase
public SqlProject asProject()
asProject
in interface SqlNode
asProject
in class SqlNodeBase
public boolean usesColumn(SqlColumn c)
usesColumn
in class SqlNodeBase
public void visit(SqlNodeVisitor visitor)
public SqlNode apply(SqlTransform transform, SqlNode subNode)
apply
in class SqlNodeBase1
public SqlNode copy(SqlNode subNode)
copy
in class SqlNodeBase1
Licenced under the Apache License, Version 2.0