Class SQLSelectItem
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
com.alibaba.druid.sql.ast.statement.SQLSelectItem
- All Implemented Interfaces:
SQLObject,SQLReplaceable
- Direct Known Subclasses:
OdpsUDTFSQLSelectItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected booleanFields inherited from class com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
alias, exprFields 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()protected voidbooleaninthashCode()booleanbooleanbooleanmatch(long alias_hash) booleanvoidoutput(StringBuilder buf) voidsetConnectByRoot(boolean connectByRoot) toString()Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLAliasedExpr
cloneTo, computeAlias, computeDataType, getAlias, getAlias2, getExpr, replace, setAlias, setExprMethods 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, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLReplaceable
replace
-
Field Details
-
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
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Overrides:
accept0in classSQLAliasedExpr
-
equals
-
hashCode
public int hashCode() -
isConnectByRoot
public boolean isConnectByRoot() -
setConnectByRoot
public void setConnectByRoot(boolean connectByRoot) -
clone
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLAliasedExpr
-
cloneTo
-
match
-
alias_hash
public long alias_hash() -
match
public boolean match(long alias_hash) -
getAliasList
-
toString
- Overrides:
toStringin classSQLObjectImpl
-
isUDTFSelectItem
public boolean isUDTFSelectItem()
-