public class ExpandedColumn extends Object
When SELECT * is expanded, each column from the source tables becomes an ExpandedColumn. This class tracks: - The column name - The original star column it came from - The source (which table/namespace) - Whether to include table qualifier
Example:
SELECT * FROM employees
-- Expands to:
ExpandedColumn("id", employees.id, *, true)
ExpandedColumn("name", employees.name, *, true)
ExpandedColumn("salary", employees.salary, *, true)
| Constructor and Description |
|---|
ExpandedColumn(String columnName,
ColumnSource columnSource,
TResultColumn originalStarColumn,
boolean includeQualifier)
Create an expanded column from an unqualified star.
|
ExpandedColumn(String columnName,
ColumnSource columnSource,
TResultColumn originalStarColumn,
String tableQualifier,
boolean includeQualifier)
Create an expanded column from a qualified star (e.g., t1.*).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getColumnName() |
ColumnSource |
getColumnSource() |
double |
getConfidence()
Get the confidence score for this expanded column.
|
TResultColumn |
getOriginalStarColumn() |
String |
getQualifiedName()
Get the fully qualified column name (e.g., "t1.id").
|
String |
getTableQualifier() |
String |
getUnqualifiedName()
Get the column name without qualifier.
|
int |
hashCode() |
boolean |
isQualified() |
String |
toString() |
public ExpandedColumn(String columnName, ColumnSource columnSource, TResultColumn originalStarColumn, boolean includeQualifier)
columnName - the column namecolumnSource - the column sourceoriginalStarColumn - the original star columnincludeQualifier - whether to include table qualifierpublic ExpandedColumn(String columnName, ColumnSource columnSource, TResultColumn originalStarColumn, String tableQualifier, boolean includeQualifier)
columnName - the column namecolumnSource - the column sourceoriginalStarColumn - the original star columntableQualifier - the table qualifier (e.g., "t1")includeQualifier - whether to include table qualifierpublic String getColumnName()
public ColumnSource getColumnSource()
public TResultColumn getOriginalStarColumn()
public String getTableQualifier()
public boolean isQualified()
public String getQualifiedName()
public String getUnqualifiedName()
public double getConfidence()