Enum EvidenceType

Object
Enum<EvidenceType>
gudusoft.gsqlparser.resolver2.inference.EvidenceType
All Implemented Interfaces:
Serializable, Comparable<EvidenceType>, java.lang.constant.Constable

public enum EvidenceType extends Enum<EvidenceType>
Types of evidence for column inference.

Different evidence types have different confidence levels: - QUALIFIED_REFERENCE: Highest confidence (0.95) - explicit table.column - JOIN_CONDITION: Very high (0.9) - explicit relationship - INSERT_COLUMN_LIST: Perfect (1.0) - explicit column definition - SELECT_LIST: High (0.85) - direct column usage - UPDATE_SET: Very high (0.95) - explicit assignment - UNQUALIFIED_REFERENCE: Variable (0.5-0.8) - depends on context - INFERRED_FROM_USAGE: Lower (0.3-0.7) - pattern-based - METADATA: Perfect (1.0) - from database schema

  • Enum Constant Details

    • QUALIFIED_REFERENCE

      public static final EvidenceType QUALIFIED_REFERENCE
      Column referenced with table qualifier. Example: t1.id in "WHERE t1.id = 100"
    • UNQUALIFIED_REFERENCE

      public static final EvidenceType UNQUALIFIED_REFERENCE
      Column referenced without table qualifier. Example: id in "WHERE id = 100"
    • JOIN_CONDITION

      public static final EvidenceType JOIN_CONDITION
      Column appears in JOIN condition. Example: t1.id in "JOIN t2 ON t1.id = t2.t1_id"
    • SELECT_LIST

      public static final EvidenceType SELECT_LIST
      Column appears in SELECT list. Example: name in "SELECT t1.name FROM t1"
    • INSERT_COLUMN_LIST

      public static final EvidenceType INSERT_COLUMN_LIST
      Column appears in INSERT column list. Example: id, name in "INSERT INTO t1 (id, name) VALUES (...)"
    • UPDATE_SET

      public static final EvidenceType UPDATE_SET
      Column appears in UPDATE SET clause. Example: name in "UPDATE t1 SET name = 'value'"
    • INFERRED_FROM_USAGE

      public static final EvidenceType INFERRED_FROM_USAGE
      Column inferred from usage patterns. Example: Inferring columns from SELECT * based on WHERE clause usage
    • METADATA

      public static final EvidenceType METADATA
      Column from database metadata. Example: Schema information from SQLEnv
    • SUBQUERY_RESULT

      public static final EvidenceType SUBQUERY_RESULT
      Column inferred from subquery result. Example: Columns propagated from inner SELECT
    • CTE_COLUMN_LIST

      public static final EvidenceType CTE_COLUMN_LIST
      Column from CTE definition. Example: Columns in WITH cte(c1, c2) AS (...)
  • Method Details

    • values

      public static EvidenceType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EvidenceType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null