public class ExpansionResult extends Object
Tracks: - Which star columns were expanded - Which star columns could not be expanded (and why) - Non-star columns (passed through) - Statistics about the expansion
Example:
SELECT t1.*, t2.id, t3.*
FROM t1 JOIN t2 JOIN t3
ExpansionResult:
- expandedStars: {t1.* -> [t1.id, t1.name], t3.* -> [t3.id, t3.status]}
- nonStarColumns: [t2.id]
- unexpandableStars: {}
| Constructor and Description |
|---|
ExpansionResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExpandedStar(TResultColumn starColumn,
List<ExpandedColumn> expandedColumns)
Add a successfully expanded star column.
|
void |
addNonStarColumn(TResultColumn column)
Add a non-star column.
|
void |
addUnexpandableStar(TResultColumn starColumn,
String reason)
Add a star column that could not be expanded.
|
List<ExpandedColumn> |
getAllExpandedColumns()
Get all expanded columns (flattened list).
|
int |
getExpandedStarCount()
Get the number of star columns that were expanded.
|
Map<TResultColumn,List<ExpandedColumn>> |
getExpandedStars()
Get all expanded stars.
|
List<TResultColumn> |
getNonStarColumns()
Get all non-star columns.
|
String |
getStatistics()
Get statistics about the expansion.
|
int |
getTotalColumnCount()
Get the total number of columns after expansion.
|
int |
getUnexpandableStarCount()
Get the number of star columns that could not be expanded.
|
Map<TResultColumn,String> |
getUnexpandableStars()
Get all unexpandable stars.
|
boolean |
hasExpandedStars()
Check if any stars were expanded.
|
boolean |
isFullyExpanded()
Check if all stars were successfully expanded.
|
String |
toString() |
public ExpansionResult()
public void addExpandedStar(TResultColumn starColumn, List<ExpandedColumn> expandedColumns)
starColumn - the original star columnexpandedColumns - the expanded columnspublic void addUnexpandableStar(TResultColumn starColumn, String reason)
starColumn - the star columnreason - why it could not be expandedpublic void addNonStarColumn(TResultColumn column)
column - the non-star columnpublic Map<TResultColumn,List<ExpandedColumn>> getExpandedStars()
public Map<TResultColumn,String> getUnexpandableStars()
public List<TResultColumn> getNonStarColumns()
public List<ExpandedColumn> getAllExpandedColumns()
public int getTotalColumnCount()
public int getExpandedStarCount()
public int getUnexpandableStarCount()
public boolean isFullyExpanded()
public boolean hasExpandedStars()
public String getStatistics()