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.01.0.

Since:
1.0
Author:
Felix Seggebäing
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Compares two SQL statements and returns a similarity score.
  • Method Details

    • compare

      double compare(SQLQueryWrapper query1, SQLQueryWrapper query2)
      Compares two SQL statements and returns a similarity score.
      Parameters:
      query1 - first SQL statement wrapper
      query2 - second SQL statement wrapper
      Returns:
      similarity score (typically normalized to 0.01.0); may be Double.NaN if no score can be computed