Class ColumnSourceWithReferences

Object
gudusoft.gsqlparser.resolver2.model.ColumnSourceWithReferences

public class ColumnSourceWithReferences extends Object
Enhanced column source that supports multiple reference traceability.

A normalized column name may correspond to multiple original references in SQL. For example, in Oracle SQL SELECT "Column1", column1 FROM dual:

  • Both "Column1" and column1 normalize to COLUMN1
  • This class stores the canonical ColumnSource plus all original references
  • Output shows one column (deduplication)
  • All original positions can be traced back

Design pattern: Aggregator for Many-to-One mapping

  • Multiple original identifiers (different syntax) → One semantic identifier
  • Maintains link from semantic identifier back to all original identifiers
Since:
3.1.0.9
  • Constructor Details

    • ColumnSourceWithReferences

      public ColumnSourceWithReferences(String normalizedName, ColumnSource canonicalSource)
      Create a new column source with references.
      Parameters:
      normalizedName - normalized column name
      canonicalSource - the canonical column source
  • Method Details