Class SQLSelectItem
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLExprImpl
-
- com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
-
- com.alibaba.druid.sql.ast.statement.SQLSelectItem
-
- All Implemented Interfaces:
SQLExpr,SQLObject,SQLReplaceable,Cloneable
- Direct Known Subclasses:
OdpsUDTFSQLSelectItem
public class SQLSelectItem extends SQLAliasedExpr implements SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected longaliasHashCode64protected List<String>aliasListprotected booleanconnectByRoot-
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
alias, expr
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesized, parenthesizedCount
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLSelectItem()SQLSelectItem(int value)SQLSelectItem(SQLExpr expr)SQLSelectItem(SQLExpr expr, String alias)SQLSelectItem(SQLExpr expr, String alias, boolean connectByRoot)SQLSelectItem(SQLExpr expr, List<String> aliasList, boolean connectByRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)longalias_hash()SQLSelectItemclone()protected voidcloneTo(SQLSelectItem x)booleanequals(Object o)List<String>getAliasList()inthashCode()booleanisConnectByRoot()booleanisUDTFSelectItem()booleanmatch(long alias_hash)booleanmatch(String alias)voidoutput(StringBuilder buf)voidsetConnectByRoot(boolean connectByRoot)StringtoString()-
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
cloneTo, computeAlias, computeDataType, getAlias, getAlias2, getExpr, replace, setAlias, setExpr
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getChildren, getParenthesizedCount, increaseParenthesizedCount, isParenthesized, setParenthesized, setParenthesizedCount
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLReplaceable
replace
-
-
-
-
Constructor Detail
-
SQLSelectItem
public SQLSelectItem()
-
SQLSelectItem
public SQLSelectItem(SQLExpr expr)
-
SQLSelectItem
public SQLSelectItem(int value)
-
-
Method Detail
-
output
public void output(StringBuilder buf)
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
protected void accept0(SQLASTVisitor v)
- Overrides:
accept0in classSQLAliasedExpr
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSQLAliasedExpr
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSQLAliasedExpr
-
isConnectByRoot
public boolean isConnectByRoot()
-
setConnectByRoot
public void setConnectByRoot(boolean connectByRoot)
-
clone
public SQLSelectItem clone()
-
cloneTo
protected void cloneTo(SQLSelectItem x)
-
match
public boolean match(String alias)
-
alias_hash
public long alias_hash()
-
match
public boolean match(long alias_hash)
-
toString
public String toString()
- Overrides:
toStringin classSQLObjectImpl
-
isUDTFSelectItem
public boolean isUDTFSelectItem()
-
-