Class SQLExprTableSource
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
com.alibaba.druid.sql.ast.statement.SQLExprTableSource
- All Implemented Interfaces:
SQLObject,SQLReplaceable,SQLTableSource
- Direct Known Subclasses:
OracleSelectTableReference,OscarFunctionTableSource,PGFunctionTableSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLExprprotected SQLTableSamplingprotected SchemaObjectFields inherited from class com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
alias, aliasHashCode64, flashback, hints, pivot, unpivotFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLExprTableSource(SQLExpr expr) SQLExprTableSource(SQLExpr expr, String alias) SQLExprTableSource(String tableName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidaddPartition(SQLName partition) longclone()voidbooleancontainsAlias(long aliasHash) booleancontainsAlias(String alias) booleanfindColumn(long columnNameHash) findColumn(String columnName) findTableSource(long alias_hash) findTableSourceWithColumn(long columnName_hash, String name, int option) findTableSourceWithColumn(String columnName) getExpr()getName()intgetTableName(boolean normalize) inthashCode()booleanresolveColum(long columnNameHash) booleansetCatalog(String catalog) voidsetCatalog(String catalog, String schema) voidvoidvoidvoidvoidsetSchemaObject(SchemaObject schemaObject) voidsetSimpleName(String name) Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLTableSourceImpl
findTableSource, findTableSourceWithColumn, findTableSourceWithColumn, getAlias, getAlias2, getFlashback, getHints, getHintsSize, getPivot, getUnpivot, setAlias, setFlashback, setHints, setPivot, setUnpivotMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
expr
-
partitions
-
sampling
-
schemaObject
-
columns
-
-
Constructor Details
-
SQLExprTableSource
public SQLExprTableSource() -
SQLExprTableSource
-
SQLExprTableSource
-
SQLExprTableSource
-
-
Method Details
-
getExpr
-
setExpr
-
setExpr
-
getSampling
-
setSampling
-
getName
-
getTableName
-
getTableName
-
getSchema
-
getCatalog
-
setCatalog
-
setCatalog
-
setSchema
-
setSimpleName
-
getPartitions
-
getPartitionSize
public int getPartitionSize() -
addPartition
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
computeAlias
- Specified by:
computeAliasin interfaceSQLTableSource- Overrides:
computeAliasin classSQLTableSourceImpl
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableSource- Overrides:
clonein classSQLTableSourceImpl
-
cloneTo
-
getColumns
-
getColumnsDirect
-
getSchemaObject
-
setSchemaObject
-
containsAlias
- Specified by:
containsAliasin interfaceSQLTableSource- Overrides:
containsAliasin classSQLTableSourceImpl
-
containsAlias
public boolean containsAlias(long aliasHash) -
findColumn
- Specified by:
findColumnin interfaceSQLTableSource- Overrides:
findColumnin classSQLTableSourceImpl
-
findColumn
- Specified by:
findColumnin interfaceSQLTableSource- Overrides:
findColumnin classSQLTableSourceImpl
-
resolveColum
- Specified by:
resolveColumin interfaceSQLTableSource- Overrides:
resolveColumin classSQLTableSourceImpl
-
findTableSourceWithColumn
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource- Overrides:
findTableSourceWithColumnin classSQLTableSourceImpl
-
findTableSourceWithColumn
- Specified by:
findTableSourceWithColumnin interfaceSQLTableSource- Overrides:
findTableSourceWithColumnin classSQLTableSourceImpl
-
findTableSource
- Specified by:
findTableSourcein interfaceSQLTableSource- Overrides:
findTableSourcein classSQLTableSourceImpl
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
aliasHashCode64
public long aliasHashCode64()- Specified by:
aliasHashCode64in interfaceSQLTableSource- Overrides:
aliasHashCode64in classSQLTableSourceImpl
-
equals
- Overrides:
equalsin classSQLTableSourceImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classSQLTableSourceImpl
-