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
Modifier and TypeFieldDescriptionprotected String
protected long
protected boolean
protected SQLExpr
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
ConstructorDescriptionSQLSelectItem
(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 void
long
clone()
boolean
getAlias()
getExpr()
int
hashCode()
boolean
boolean
boolean
match
(long alias_hash) boolean
void
output
(Appendable buf) boolean
void
void
setConnectByRoot
(boolean connectByRoot) void
toString()
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, output, 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:
computeDataType
in classSQLObjectImpl
-
getAlias
-
getAlias2
-
setAlias
-
output
- Specified by:
output
in interfaceSQLObject
- Overrides:
output
in classSQLObjectImpl
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
equals
-
hashCode
public int hashCode() -
isConnectByRoot
public boolean isConnectByRoot() -
setConnectByRoot
public void setConnectByRoot(boolean connectByRoot) -
clone
- Specified by:
clone
in interfaceSQLObject
- Overrides:
clone
in classSQLObjectImpl
-
replace
- Specified by:
replace
in interfaceSQLReplaceable
-
match
-
alias_hash
public long alias_hash() -
match
public boolean match(long alias_hash) -
getAliasList
-
toString
- Overrides:
toString
in classSQLObjectImpl
-
isUDTFSelectItem
public boolean isUDTFSelectItem()
-