| Modifier and Type | Field and Description |
|---|---|
protected TTable |
TCustomSqlStatement.fromSourceTable |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TCustomSqlStatement.analyzeFromTable(TFromTable pfromTable,
Boolean addToTableList) |
TTable |
TCustomSqlStatement.analyzeFromTable(TFromTable pfromTable,
Boolean addToTableList,
ESqlClause pLocation) |
TTable |
TCustomSqlStatement.analyzeTablename(TObjectName tableName) |
TTable |
TCustomSqlStatement.findTable(ETableEffectType[] tableEffectTypes) |
TTable |
TCustomSqlStatement.getFirstPhysicalTable() |
TTable |
TCustomSqlStatement.getFromSourceTable()
This is table in from clause if only one table is listed in the from clause,
If more than one table is listed in from clause, please check
TCustomSqlStatement.getFromSourceJoin() instead. |
TTable |
TAttributeNode.getTable_ref() |
TTable |
TCustomSqlStatement.getTargetTable()
target table in the delete/insert/update/create table statement.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<TTable> |
TCustomSqlStatement.getRelations()
Relations that used in from clause of select statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TCustomSqlStatement.addToTables(TTable pTable) |
ArrayList<String> |
TCustomSqlStatement.getColumnsInTable(TTable lcTable)
Deprecated.
since 2.3.8.2, use
getExpandedStarColumns() instead. |
protected boolean |
TCustomSqlStatement.isTableACTE(TTable pTable) |
void |
TCustomSqlStatement.setTargetTable(TTable targetTable) |
protected void |
TCustomSqlStatement.unbindCteTarget(TTable target)
PostgreSQL family: the target of an INSERT, UPDATE, DELETE or MERGE is always a table, never a CTE of a WITH
(measured on PostgreSQL 17:
WITH t AS (DELETE ...) UPDATE t ... updates table t, and
WITH d1 AS (SELECT ...), d2 AS (INSERT INTO d1 SELECT a FROM d1 ...) inserts into table d1 while its
FROM d1 reads the CTE). |
| Constructor and Description |
|---|
TAttributeNode(String n,
TTable table) |
TAttributeNode(String n,
TTable table,
TColumnDefinition columnDef,
TResultColumn resultColumn) |
TAttributeNode(String n,
TTable table,
TResultColumn attribute) |
TAttributeNode(String n,
TTable table,
TResultColumn attribute,
int index) |
TAttributeNode(String n,
TTable table,
TSQLColumn columnDef) |
TAttributeNode(String n,
TTable table,
TSQLColumn columnDef,
TResultColumn attribute) |
TAttributeNode(String n,
TTable table,
TSQLColumn columnDef,
TResultColumn attribute,
int index) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DataFlowAnalyzer.analyzeTableSubquery(TTable table) |
protected TObjectNameList |
DataFlowAnalyzer.getTableLinkedColumns(TTable table) |
boolean |
PipelinedFunctionAnalyzer.tryStitchCallSite(TTable table,
TFunctionCall funcCall)
Called when TABLE(func(...)) is encountered in a FROM clause.
|
void |
PipelinedFunctionAnalyzer.tryStitchTableExpr(TTable table)
Handle TABLE(func(...)) which is parsed as tableExpr with funcCall=null.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
PendingPipelinedCallSite.getTable() |
TTable |
ModelBindingManager.getTable(TCustomSqlStatement stmt,
TObjectName column) |
TTable |
ModelBindingManager.getTableFromColumn(TObjectName column) |
TTable |
QueryTable.getTableObject() |
TTable |
Table.getTableObject() |
TTable |
ModelBindingManager.guessTable(TCustomSqlStatement stmt,
TObjectName column) |
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
ModelBindingManager.getBaseTables() |
List<TTable> |
ModelBindingManager.getTableWithSelectSetResultSets() |
| Modifier and Type | Method and Description |
|---|---|
void |
ModelBindingManager.bindCreateModel(TTable table,
Table tableModel) |
Table |
ModelFactory.createArrayRelationTable(TTable table,
String name)
Plan section 4.3: the table of a relation a table-generating construct adds to a SELECT, a Hive-family
LATERAL VIEW here, keyed by its parse node and published under name. |
Table |
ModelFactory.createJsonTable(TTable table) |
QueryTable |
ModelFactory.createQueryTable(TTable table) |
Table |
ModelFactory.createTable(TTable table) |
Table |
ModelFactory.createTable(TTable table,
TObjectName tableBinding) |
Table |
ModelFactory.createTableFromCreateDDL(TTable table,
boolean fromDDL) |
Table |
ModelFactory.createTableFromCreateDDL(TTable table,
boolean fromDDL,
String tableName) |
Table |
ModelFactory.createTriggerOnTable(TTable table) |
Table |
ModelFactory.createXmlTable(TTable table) |
static PendingPipelinedCallSite |
PendingPipelinedCallSite.forFunctionKeys(List<String> functionNames,
List<?> functionKeys,
int argCount,
TTable table,
TFunctionCall callExpr)
A call site whose function may be registered under
functionKeys, most specific first (the identities
ModelBindingManager.addPipelinedSignature(gudusoft.gsqlparser.dlineage.dataflow.model.PipelinedFunctionSignature) registers); functionNames are the same candidates as
written, for display. |
Table |
ModelBindingManager.getCreateModel(TTable table) |
Table |
ModelBindingManager.getCreateTable(TTable table) |
TObjectName[] |
ModelBindingManager.getTableColumns(TTable table) |
static boolean |
ModelBindingManager.isScopedTemporary(TTable table)
Whether a table reference names one routine body's temporary table rather than a shared
one: its name says so (
#t), or resolver2 bound it to a table that a routine
declared temporary (CREATE TEMP TABLE t). |
Pair<Pair3<Long,Long,String>,Pair3<Long,Long,String>> |
Table.setPosition(TTable table) |
protected void |
ModelBindingManager.updateTableAliasMap(TTable table) |
| Constructor and Description |
|---|
PendingPipelinedCallSite(List<String> functionKeyCandidates,
int argCount,
TTable table,
TFunctionCall callExpr)
Deprecated.
signatures are registered under the identities of their names: use
PendingPipelinedCallSite.forFunctionKeys(List, List, int, TTable, TFunctionCall) |
QueryTable(TTable tableObject) |
Table(TTable table) |
Table(TTable table,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
void |
TableReferenceVisitor.preVisit(TTable node) |
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
UsingScope.EquivalenceClass.getMembers() |
| Modifier and Type | Method and Description |
|---|---|
RelationBinding |
Resolver2NameBindingProvider.bindRelation(TTable table) |
RelationBinding |
NameBindingProvider.bindRelation(TTable table)
Resolve a FROM-clause relation reference to a
RelationBinding. |
static String |
FromSubqueryNaming.effectiveAliasOrNull(TTable t)
Effective alias for any FROM-clause
TTable: the SQL-written
alias if non-empty, else the synthetic alias for unaliased
FROM-subquery TTables, else null. |
UsingScope.MergedKeyEntry |
UsingScope.entryContaining(String name,
TTable table)
Returns the
UsingScope.MergedKeyEntry whose equivalence class
contains table by object identity, or null if
table is not in any class for name. |
List<String> |
Resolver2NameBindingProvider.getRelationColumnNames(TTable table) |
default List<String> |
NameBindingProvider.getRelationColumnNames(TTable table)
Slice 58 — catalog-known column names for
table in catalog
declaration order, or null when no catalog information is
available for this relation. |
static String |
FromSubqueryNaming.synthAliasFor(TTable t)
Compute the synthetic alias for an unaliased FROM-clause subquery
TTable. |
| Constructor and Description |
|---|
EquivalenceClass(String key,
List<TTable> members) |
| Modifier and Type | Class and Description |
|---|---|
class |
TCTE
A common table expression permits defining a result table with a table-name that can be specified as a table name in any FROM clause of the fullselect that follows.
|
| Modifier and Type | Field and Description |
|---|---|
protected TTable |
TPivotedTable.tmpFromSourceTable |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TLateralView.createATable(TCustomSqlStatement sql) |
TTable |
TCreateTableSqlNode.getAsTable() |
TTable |
TJoinExpr.getLeftTable() |
TTable |
TTable.getLinkTable() |
TTable |
TCreateTriggerSqlNode.getOnTable()
Deprecated.
As of v2.0.1.0, use
TCreateTriggerSqlNode.getTriggeringClause() instead |
TTable |
TColumnWithSortOrder.getOwnerTable() |
TTable |
TPivotClause.getPivotTable() |
TTable |
TAlterTableOption.getReferencedTable()
referenced table in foreign key clause
|
TTable |
TJoinExpr.getRightTable() |
TTable |
TObjectName.getSourceTable()
Get the immediate source table where this column is visible in the current scope.
|
TTable |
TTable.getSourceTableOfPivot() |
TTable |
TCreateTableSqlNode.getTable() |
TTable |
TJoinItem.getTable()
Deprecated.
Valid when
TJoinItem.getKind() = TBaseType.join_source_table, means this joinitem start with a table. |
TTable |
TJoin.getTable()
Deprecated.
|
TTable |
TInsertIntoValue.getTable() |
TTable |
TTableList.getTable(int position) |
TTable |
TCaseJoinItem.getTableReference() |
TTable |
TPivotedTable.getTableSource() |
| Modifier and Type | Method and Description |
|---|---|
Map<TTable,Integer> |
TObjectName.getCandidateTableDdlStatus()
Get DDL verification status for all candidate tables.
|
List<TTable> |
TObjectName.getCandidateTables2()
Get all candidate tables (for ambiguous columns)
|
ArrayList<TTable> |
TFromClause.getRelations() |
ArrayList<TTable> |
TPivotedTable.getRelations() |
ArrayList<TTable> |
TObjectName.getSourceTableList()
source table list for star column,
select * from emp,dept * column will be list to both emp and dept table. |
| Modifier and Type | Method and Description |
|---|---|
void |
TTableList.addTable(TTable table) |
void |
TObjectName.columnToPropertyIfQualifiedByTable(TTable pBoundTable)
Apply the qualifier rule of
TObjectName.resolveWithThisTable(TTable) to a column that is
bound to pBoundTable by its position rather than found by a name lookup. |
int |
TObjectName.getDdlVerificationStatus(TTable table)
Check DDL verification status for a candidate table.
|
void |
TUnpivotInClause.linkColumnToPivotSourceTable(TTable table) |
void |
TPivotInClause.linkColumnToTable(TTable table,
TSQLTable sqlTable) |
void |
TParseTreeVisitor.postVisit(TTable node) |
void |
TParseTreeVisitor.preVisit(TTable node) |
boolean |
TObjectName.resolveWithThisTable(TTable pTable)
This column must be in this syntax: table.column, otherwise, this method always return false.
|
boolean |
TCTE.searchColumnInResultSet(TCustomSqlStatement pSql,
TTable pTable,
TObjectName pColumn,
boolean pMustIn) |
void |
TJoinExpr.setLeftTable(TTable leftTable) |
void |
TTable.setLinkTable(TTable linkTable) |
void |
TColumnWithSortOrder.setOwnerTable(TTable ownerTable) |
void |
TTableHint.setOwnerTable(TTable ownerTable) |
void |
TJoinExpr.setRightTable(TTable rightTable) |
void |
TObjectName.setSourceTable(TTable sourceTable)
Set the table this column belongs to.
|
void |
TObjectName.setSourceTableBySQLResolver(TCustomSqlStatement sqlStatement,
TAttributeNode attributeNode,
TTable newSourceTable) |
void |
TTable.setSourceTableOfPivot(TTable sourceTableOfPivot) |
void |
TJoinItem.setTable(TTable table)
Deprecated.
|
void |
TJoin.setTable(TTable table)
Deprecated.
|
void |
TInsertIntoValue.setTable(TTable table) |
void |
TPivotedTable.setTableSource(TTable tableSource) |
| Constructor and Description |
|---|
TFromClause(ArrayList<TTable> relations) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TDaxFunction.getDefaultTable() |
TTable |
TDaxFunction.getReturnTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
TDaxFunction.setDefaultTable(TTable defaultTable) |
void |
TDaxFunction.setReturnTable(TTable returnTable) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TUnPackFunction.getTable() |
TTable |
TNPathFunction.getTable() |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TTDUnpivot.getTdUnpivotOutputTable() |
TTable |
TTDUnpivot.getUnPivotTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
TTDUnpivot.setTdUnpivotOutputTable(TTable table)
Set the TD_UNPIVOT output table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TRelationResolver.postVisit(TTable table) |
void |
TAttributeResolver.postVisit(TTable node) |
void |
TRelationResolver2.postVisit(TTable table) |
void |
TRelationValidator.postVisit(TTable node) |
void |
TRelationResolver.preVisit(TTable node)
处理表节点,根据表类型收集相应的属性。
这是属性收集的核心方法。
|
void |
TRelationValidator.preVisit(TTable node) |
| Modifier and Type | Method and Description |
|---|---|
void |
TAttributeResolver.resolveInThoseRelations(TObjectName attribute,
ArrayList<TTable> relations) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
ScopeBuildResult.getUsingColumnLeftTable(TObjectName column)
Get the left-side table for a USING column.
|
TTable |
ScopeBuildResult.getUsingColumnRightTable(TObjectName column)
Get the right-side table for a USING column.
|
| Modifier and Type | Method and Description |
|---|---|
Set<TTable> |
ScopeBuildResult.getCTASTargetTables()
Get all CTAS target tables
|
Map<TObjectName,TTable> |
ScopeBuilder.getMergeInsertValuesColumns()
Get the map of MERGE INSERT VALUES columns to their USING (source) table.
|
Map<TTable,INamespace> |
ScopeBuildResult.getTableToNamespaceMap()
Get all TTable -> INamespace mappings
|
Map<TObjectName,TTable> |
ScopeBuildResult.getUsingColumnToLeftTable()
Get all USING column -> left-side table mappings
|
Map<TObjectName,TTable> |
ScopeBuilder.getUsingColumnToRightTable()
Get the mapping of USING columns to their right-side tables.
|
Map<TObjectName,TTable> |
ScopeBuildResult.getUsingColumnToRightTable()
Get all USING column -> right-side table mappings
|
Set<TTable> |
ScopeBuilder.getVirtualTriggerTables()
Get the set of virtual trigger tables (deleted/inserted in SQL Server triggers).
|
Set<TTable> |
TSQLResolver2.getVirtualTriggerTables()
Get the set of virtual trigger tables (deleted/inserted in SQL Server triggers).
|
| Modifier and Type | Method and Description |
|---|---|
INamespace |
ScopeBuildResult.getNamespaceForTable(TTable table)
Get the namespace for a specific table.
|
boolean |
ScopeBuildResult.isCTASTargetTable(TTable table)
Check if a table is a CTAS target table (table being created by CREATE TABLE AS SELECT).
|
void |
ScopeBuilder.postVisit(TTable table) |
void |
ScopeBuilder.preVisit(TTable table) |
| Constructor and Description |
|---|
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap,
Set<TTable> ctasTargetTables) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap,
Set<TTable> ctasTargetTables) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap,
Set<TTable> ctasTargetTables) |
ScopeBuildResult(GlobalScope globalScope,
Map<TObjectName,IScope> columnToScopeMap,
List<TObjectName> allColumnReferences,
Map<TSelectSqlStatement,SelectScope> statementScopeMap,
Map<TObjectName,TTable> usingColumnToRightTable,
Map<TObjectName,TTable> usingColumnToLeftTable,
Map<TTable,INamespace> tableToNamespaceMap,
Set<TTable> ctasTargetTables) |
| Modifier and Type | Field and Description |
|---|---|
TTable |
BindingTrace.directTarget
Direct-binding target table;
null for scope resolution. |
TTable |
BindingTrace.observedSourceTable
The reference's
sourceTable AS OF capture time. |
| Modifier and Type | Method and Description |
|---|---|
static BindingTrace |
BindingTrace.direct(TObjectName reference,
BindingTrace.BinderKind kind,
TTable target)
Typed direct-binding capture (ScopeBuilder clusters).
|
static BindingTrace |
BindingTrace.scopeResolution(TObjectName reference,
ResolutionStatus status,
INamespace namespace,
Object definitionNode,
TTable observedSourceTable,
String startingScope,
String matchedScope,
String resolvePath,
int matchCount,
int scopeClimbDepth,
boolean fullyConsumed,
boolean exactMatch,
boolean fallbackUsed)
Scope-machinery capture (NameResolver choke point).
|
| Modifier and Type | Method and Description |
|---|---|
String |
DisplayNameNormalizer.getTableDisplayName(TTable table)
Get a display name for a table, handling various TTable configurations.
|
String |
DisplayNameNormalizer.normalizeTableName(TTable table)
Normalize a table name for display.
|
void |
StarRedundancyLedger.recordColumn(String prefix,
String rendered,
TObjectName column,
TTable renderedTable)
A column entry written as
rendered for the reference column, shown under prefix as a column of renderedTable. |
void |
StarRedundancyLedger.recordStar(String text,
String prefix,
TTable table)
A star entry that would be written as
text, standing for table, under prefix. |
| Modifier and Type | Method and Description |
|---|---|
ColumnSource |
InferenceEngine.createInferredColumnSource(String tableName,
String columnName,
TTable table)
Create an inferred ColumnSource for a table.column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatementMetadata.configure(TableNamespace namespace,
TTable table) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
FromScopeIndex.findTableByQualifier(String qualifier)
Gets the TTable from a ScopeChild by qualifier, if the namespace represents a table.
|
TTable |
ColumnSource.getFinalTable()
Get the final physical table this column originates from after tracing
through all subqueries and CTEs.
|
TTable |
ColumnSource.getOverrideTable()
Get the override table, if set.
|
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
ColumnSource.getAllFinalTables()
Get all physical tables that this column might originate from.
|
Set<TTable> |
ResolutionContext.getAllReferencedTables()
Get all tables that have been referenced
|
Map<TTable,Integer> |
ColumnSource.getCandidateTableDdlStatus()
Get DDL verification status for all candidate tables.
|
List<TTable> |
ColumnSource.getCandidateTables()
Get the candidate tables for ambiguous columns.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
ColumnSource.getDdlVerificationStatus(TTable table,
String columnName)
Check DDL verification status for a candidate table.
|
List<TObjectName> |
ResolutionContext.getReferencesTo(TTable table)
Get all column references to a specific table.
|
List<TObjectName> |
ResolutionContext.getReferencesTo(TTable table,
String columnName)
Get all column references to a specific table.column.
|
int |
ResolutionContext.getTableReferenceCount(TTable table)
Get reference count for a specific table
|
static boolean |
ColumnSource.hasTableDdl(TTable table)
Check if a table has DDL metadata available (from CREATE TABLE in same script).
|
static boolean |
ColumnSource.isColumnInTableDdl(TTable table,
String columnName)
Check if a column exists in a table's DDL definition.
|
QualifiedName |
QualifiedNameResolver.resolve(TTable table)
Resolve a TTable's name to a fully qualified name.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnSource |
ColumnSource.withCandidateTables(List<TTable> candidates)
Creates a copy with candidate tables.
|
| Constructor and Description |
|---|
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable) |
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables) |
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables,
ResolutionEvidence evidenceDetail)
Full constructor with all fields including ResolutionEvidence.
|
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables,
ResolutionEvidence evidenceDetail,
FieldPath fieldPath)
Full constructor with all fields including ResolutionEvidence and FieldPath.
|
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
ResolutionEvidence evidenceDetail,
TTable overrideTable)
Constructor with ResolutionEvidence and override table.
|
| Constructor and Description |
|---|
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables) |
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables,
ResolutionEvidence evidenceDetail)
Full constructor with all fields including ResolutionEvidence.
|
ColumnSource(INamespace sourceNamespace,
String exposedName,
TParseTreeNode definitionNode,
double confidence,
String evidence,
TTable overrideTable,
List<TTable> candidateTables,
ResolutionEvidence evidenceDetail,
FieldPath fieldPath)
Full constructor with all fields including ResolutionEvidence and FieldPath.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
DynamicStarSource.getFinalTable() |
TTable |
PlsqlVariableNamespace.getFinalTable() |
TTable |
ValuesNamespace.getFinalTable() |
TTable |
OraclePackageNamespace.getFinalTable() |
TTable |
TableNamespace.getFinalTable() |
TTable |
CTENamespace.getFinalTable() |
TTable |
UnionNamespace.getFinalTable() |
TTable |
UnnestNamespace.getFinalTable() |
TTable |
SubqueryNamespace.getFinalTable() |
TTable |
LateralViewNamespace.getFinalTable() |
TTable |
PivotNamespace.getFinalTable() |
TTable |
INamespace.getFinalTable()
Get the final physical table this namespace represents.
|
TTable |
PivotNamespace.getPivotTable()
Get the pivot table.
|
TTable |
CTENamespace.getReferencingTable()
Get the TTable that references this CTE in a FROM clause.
|
TTable |
TableNamespace.getSourceTable() |
TTable |
CTENamespace.getSourceTable()
Get the TTable that this namespace is associated with.
|
TTable |
UnnestNamespace.getSourceTable()
Get the TTable that this namespace is associated with.
|
TTable |
SubqueryNamespace.getSourceTable() |
TTable |
LateralViewNamespace.getSourceTable()
The LATERAL VIEW's own table: the source table of a column resolved through it.
|
TTable |
PivotNamespace.getSourceTable()
Get the TTable that this namespace is associated with.
|
default TTable |
INamespace.getSourceTable()
Get the TTable that this namespace is associated with.
|
TTable |
ValuesNamespace.getTable() |
TTable |
TableNamespace.getTable() |
TTable |
LateralViewNamespace.getTable() |
TTable |
PivotNamespace.getUnderlyingSourceTable()
Get the underlying table that PIVOT operates on.
|
TTable |
UnnestNamespace.getUnnestTable() |
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
PlsqlVariableNamespace.getAllFinalTables() |
List<TTable> |
ValuesNamespace.getAllFinalTables() |
List<TTable> |
OraclePackageNamespace.getAllFinalTables() |
List<TTable> |
CTENamespace.getAllFinalTables() |
List<TTable> |
UnionNamespace.getAllFinalTables() |
List<TTable> |
UnnestNamespace.getAllFinalTables() |
List<TTable> |
SubqueryNamespace.getAllFinalTables() |
List<TTable> |
AbstractNamespace.getAllFinalTables() |
List<TTable> |
LateralViewNamespace.getAllFinalTables() |
List<TTable> |
PivotNamespace.getAllFinalTables() |
List<TTable> |
INamespace.getAllFinalTables()
Get all final physical tables this namespace depends on.
|
| Modifier and Type | Method and Description |
|---|---|
static TableFunctionLayout |
TableFunctionLayout.of(TTable table)
The layout of a FROM item, or null when the item is not a call whose columns or rows this rule settles.
|
static void |
TableFunctionLayout.recordDeclared(TTable table,
TSQLEnv env)
Records on a function call in FROM the columns the catalog declares for the function it calls (a CREATE FUNCTION
of the input registered before the call, or the catalog's metadata), so every consumer of the layout reads the
columns resolver2 resolved the call with; nothing for a built-in this rule lays out, or an unknown function.
|
void |
CTENamespace.setReferencingTable(TTable table)
Set the TTable that references this CTE in a FROM clause.
|
void |
SubqueryNamespace.setSourceTable(TTable sourceTable)
Set the TTable that wraps this subquery.
|
| Constructor and Description |
|---|
DynamicStarSource(TTable table,
INameMatcher nameMatcher) |
LateralViewNamespace(TTable table,
String alias,
TObjectNameList columns,
INameMatcher nameMatcher)
columns: the LATERAL VIEW's column aliases, item in lv AS item; null for none. |
PivotNamespace(TTable pivotTable,
TPivotClause pivotClause,
TTable sourceTable,
String alias,
INameMatcher nameMatcher) |
TableNamespace(TTable table) |
TableNamespace(TTable table,
INameMatcher nameMatcher) |
TableNamespace(TTable table,
INameMatcher nameMatcher,
TSQLEnv sqlEnv) |
TableNamespace(TTable table,
INameMatcher nameMatcher,
TSQLEnv sqlEnv,
EDbVendor vendor)
Create a TableNamespace with full qualified name resolution support.
|
UnnestNamespace(TTable unnestTable,
String alias) |
UnnestNamespace(TTable unnestTable,
String alias,
INameMatcher nameMatcher) |
ValuesNamespace(TTable table,
String alias) |
ValuesNamespace(TTable table,
String alias,
INameMatcher nameMatcher) |
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
ResolutionResultImpl.getTables(TCustomSqlStatement stmt) |
List<TTable> |
IResolutionResult.getTables(TCustomSqlStatement stmt)
获取指定语句中涉及的所有表
默认过滤:排除 JOIN 容器,包含物理表
|
List<TTable> |
ResolutionResultImpl.getTables(TCustomSqlStatement stmt,
TableFilterOptions options) |
List<TTable> |
IResolutionResult.getTables(TCustomSqlStatement stmt,
TableFilterOptions options)
获取指定语句中涉及的所有表(带过滤选项)
|
| Modifier and Type | Method and Description |
|---|---|
List<TObjectName> |
ResolutionResultImpl.getColumnsForTable(TCustomSqlStatement stmt,
TTable table) |
List<TObjectName> |
IResolutionResult.getColumnsForTable(TCustomSqlStatement stmt,
TTable table)
获取关联到指定表的列
|
static String |
ResolutionUtils.getFullTableName(TTable table)
Get the full table name (including schema)
|
static String |
ResolutionUtils.getTableDisplayName(TTable table)
Get the display name of a table
Format: schema.table, alias(subquery), cte_name(CTE)
|
static boolean |
ResolutionUtils.isCTE(TTable table)
Check if it is a CTE reference
|
static boolean |
ResolutionUtils.isFunction(TTable table)
Check if it is a function table
|
static boolean |
ResolutionUtils.isPhysicalTable(TTable table)
Check if it is a physical table
|
static boolean |
ResolutionUtils.isSubquery(TTable table)
Check if it is a subquery
|
| Modifier and Type | Method and Description |
|---|---|
List<TTable> |
SelectScope.UsingMerge.getParticipants() |
| Modifier and Type | Method and Description |
|---|---|
void |
SelectScope.UsingMerge.addParticipant(TTable table)
Participants are added LEFT side first, right side last, and the order is meaningful.
|
boolean |
SelectScope.UsingMerge.hasParticipant(TTable table) |
| Modifier and Type | Method and Description |
|---|---|
SelectScope.UsingMerge |
SelectScope.findCoveringMerge(EDbVendor vendor,
String columnName,
List<TTable> candidateTables)
The merge that covers this column name and EVERY one of the given relations, or null.
|
SelectScope.UsingMerge |
SelectScope.findCoveringMerge(IdentifierService names,
String columnName,
List<TTable> candidateTables)
SelectScope.findCoveringMerge(gudusoft.gsqlparser.EDbVendor, String, java.util.List) with the
column names compared under one analysis's identifier rules (a configured profile). |
| Constructor and Description |
|---|
LeftOfFromScope(IScope parent,
FromScope live,
List<TTable> sourceOrder,
TTable bound) |
| Constructor and Description |
|---|
LeftOfFromScope(IScope parent,
FromScope live,
List<TTable> sourceOrder,
TTable bound) |
| Modifier and Type | Method and Description |
|---|---|
void |
TScriptGeneratorVisitor.preVisit(TTable node) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TCreateTableSqlStatement.getAsTable()
Netezza, Teradata, as table name.
|
TTable |
TCreateTriggerStmt.getOnTable()
Deprecated.
As of v2.0.1.0, use
TCreateTriggerStmt.getTriggeringClause() instead |
TTable |
TStarrocksExportStmt.getSourceTable() |
TTable |
TAnalyzeStmt.getTable() |
TTable |
TLockTableStmt.getTalbe() |
TTable |
TCreateRoutineLoadStmt.getTargetTable() |
TTable |
TMergeSqlStatement.getUsingTable()
Source table in the using clause.
|
static TTable |
TSelectSqlStatement.outerCorrelationTable(TObjectName name,
TSelectSqlStatement subquery,
TSQLEnv sqlEnv)
The table of an enclosing query that the unqualified
name in subquery reads, or null when the name
is the subquery's own (Mantis 4797). |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<TTable> |
TLockTableStmt.getTableList() |
| Modifier and Type | Method and Description |
|---|---|
void |
TCreateTableSqlStatement.setAsTable(TTable asTable) |
void |
TCreateTriggerStmt.setOnTable(TTable onTable) |
void |
TAnalyzeStmt.setTable(TTable table) |
void |
TLockTableStmt.setTalbe(TTable talbe) |
void |
TMergeSqlStatement.setUsingTable(TTable usingTable) |
static boolean |
TSelectSqlStatement.unnestHasStructField(TTable unnest,
String columnName)
Whether an UNNEST relation provably has a column
columnName as a field of the STRUCTs its array holds:
UNNEST([STRUCT(0 AS a, 1 AS b)]), or a CTE or derived column defined so, has the columns a and b. |
static List<String> |
TSelectSqlStatement.unnestStructFieldNames(TTable unnest)
The field names of the STRUCTs an UNNEST reads, which are its columns, or null when they are not known or an
alias column list names its columns instead.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
TDaxStmt.getDefaultTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
TDaxStmt.setDefaultTable(TTable defaultTable) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TDb2CreateTrigger.getOnTable()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TDb2CreateTrigger.setOnTable(TTable onTable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
THiveImportTable.getTable() |
TTable |
THiveLoad.getTable() |
TTable |
THiveGrant.getTable() |
TTable |
THiveRevoke.getTable() |
TTable |
THiveExportTable.getTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
THiveImportTable.setTable(TTable table) |
void |
THiveLoad.setTable(TTable table) |
void |
THiveGrant.setTable(TTable table) |
void |
THiveRevoke.setTable(TTable table) |
void |
THiveExportTable.setTable(TTable table) |
| Modifier and Type | Method and Description |
|---|---|
TTable |
TMssqlUpdateText.getCopySourceTable()
The table read by the column-copy form, derived from the source column prefix.
|
TTable |
TMssqlCreateTrigger.getOnTable()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TMssqlCreateTrigger.setOnTable(TTable onTable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
TMySQLCreateTrigger.getOnTable()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TMySQLCreateTrigger.setOnTable(TTable onTable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TTable |
TPlsqlCreateTriggerSqlStatement.getOnTable()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TPlsqlCreateTriggerSqlStatement.setOnTable(TTable onTable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TTeradataCollectStatistics.setTable(TTable table) |