Module de.seggebaeing.sqlanalyzer
Interface StatementComparator
- All Known Implementing Classes:
LLMComparator
public interface StatementComparator
Strategy interface for comparing two SQL statements and producing a similarity score.
Implementations define how similarity is measured (e.g. LLM-based).
The score is typically normalized to 0.0
–1.0
.
- Since:
- 1.0
- Author:
- Felix Seggebäing
-
Method Summary
Modifier and TypeMethodDescriptiondouble
compare
(SQLQueryWrapper query1, SQLQueryWrapper query2) Compares two SQL statements and returns a similarity score.
-
Method Details
-
compare
Compares two SQL statements and returns a similarity score.- Parameters:
query1
- first SQL statement wrapperquery2
- second SQL statement wrapper- Returns:
- similarity score (typically normalized to
0.0
–1.0
); may beDouble.NaN
if no score can be computed
-