Class SQLSelectItem
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLSelectItem
- All Implemented Interfaces:
SQLObject,SQLReplaceable
- Direct Known Subclasses:
OdpsUDTFSQLSelectItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected longprotected booleanprotected SQLExprFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLSelectItem(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
Modifier and TypeMethodDescriptionprotected voidlongclone()booleangetAlias()getExpr()inthashCode()booleanbooleanbooleanmatch(long alias_hash) booleanvoidoutput(StringBuilder buf) booleanvoidvoidsetConnectByRoot(boolean connectByRoot) voidtoString()Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSourceColumn, setSourceLine
-
Field Details
-
expr
-
alias
-
connectByRoot
protected boolean connectByRoot -
aliasHashCode64
protected transient long aliasHashCode64 -
aliasList
-
-
Constructor Details
-
SQLSelectItem
public SQLSelectItem() -
SQLSelectItem
-
SQLSelectItem
public SQLSelectItem(int value) -
SQLSelectItem
-
SQLSelectItem
-
SQLSelectItem
-
-
Method Details
-
getExpr
-
setExpr
-
computeAlias
-
computeDataType
- Overrides:
computeDataTypein classSQLObjectImpl
-
getAlias
-
getAlias2
-
setAlias
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
equals
-
hashCode
public int hashCode() -
isConnectByRoot
public boolean isConnectByRoot() -
setConnectByRoot
public void setConnectByRoot(boolean connectByRoot) -
clone
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
match
-
alias_hash
public long alias_hash() -
match
public boolean match(long alias_hash) -
getAliasList
-
toString
- Overrides:
toStringin classSQLObjectImpl
-
isUDTFSelectItem
public boolean isUDTFSelectItem()
-