Enum EvidenceType
- All Implemented Interfaces:
Serializable,Comparable<EvidenceType>,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionColumn from CTE definition.Column inferred from usage patterns.Column appears in INSERT column list.Column appears in JOIN condition.Column from database metadata.Column referenced with table qualifier.Column appears in SELECT list.Column inferred from subquery result.Column referenced without table qualifier.Column appears in UPDATE SET clause. -
Method Summary
Modifier and TypeMethodDescriptionstatic EvidenceTypeReturns the enum constant of this type with the specified name.static EvidenceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUALIFIED_REFERENCE
Column referenced with table qualifier. Example: t1.id in "WHERE t1.id = 100" -
UNQUALIFIED_REFERENCE
Column referenced without table qualifier. Example: id in "WHERE id = 100" -
JOIN_CONDITION
Column appears in JOIN condition. Example: t1.id in "JOIN t2 ON t1.id = t2.t1_id" -
SELECT_LIST
Column appears in SELECT list. Example: name in "SELECT t1.name FROM t1" -
INSERT_COLUMN_LIST
Column appears in INSERT column list. Example: id, name in "INSERT INTO t1 (id, name) VALUES (...)" -
UPDATE_SET
Column appears in UPDATE SET clause. Example: name in "UPDATE t1 SET name = 'value'" -
INFERRED_FROM_USAGE
Column inferred from usage patterns. Example: Inferring columns from SELECT * based on WHERE clause usage -
METADATA
Column from database metadata. Example: Schema information from SQLEnv -
SUBQUERY_RESULT
Column inferred from subquery result. Example: Columns propagated from inner SELECT -
CTE_COLUMN_LIST
Column from CTE definition. Example: Columns in WITH cte(c1, c2) AS (...)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-