Interface CompatibilityResult.Builder

  • Method Details

    • id

      The unique ID of the translation.

      Parameters:
      id - The unique ID of the translation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetQuery

      CompatibilityResult.Builder targetQuery(String targetQuery)

      The translated query string for DuckDB.

      Parameters:
      targetQuery - The translated query string for DuckDB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the translation, and of the validation if one was run. Valid values are SUCCEEDED and FAILED.

      Parameters:
      status - The status of the translation, and of the validation if one was run. Valid values are SUCCEEDED and FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the translation, and of the validation if one was run. Valid values are SUCCEEDED and FAILED.

      Parameters:
      status - The status of the translation, and of the validation if one was run. Valid values are SUCCEEDED and FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • confidence

      CompatibilityResult.Builder confidence(String confidence)

      The confidence that the translated query is equivalent to the original query. Valid values are NO_TRANSLATION_NEEDED, TRANSLATED_TO_TARGET_DIALECT, and TRANSLATION_NEEDS_HUMAN_REVIEW.

      Parameters:
      confidence - The confidence that the translated query is equivalent to the original query. Valid values are NO_TRANSLATION_NEEDED, TRANSLATED_TO_TARGET_DIALECT, and TRANSLATION_NEEDS_HUMAN_REVIEW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • confidence

      The confidence that the translated query is equivalent to the original query. Valid values are NO_TRANSLATION_NEEDED, TRANSLATED_TO_TARGET_DIALECT, and TRANSLATION_NEEDS_HUMAN_REVIEW.

      Parameters:
      confidence - The confidence that the translated query is equivalent to the original query. Valid values are NO_TRANSLATION_NEEDED, TRANSLATED_TO_TARGET_DIALECT, and TRANSLATION_NEEDS_HUMAN_REVIEW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceQueryExecutionId

      CompatibilityResult.Builder sourceQueryExecutionId(String sourceQueryExecutionId)

      The ID of a previous query execution whose translation result was reused for this query, if any.

      Parameters:
      sourceQueryExecutionId - The ID of a previous query execution whose translation result was reused for this query, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetQueryExecutionId

      CompatibilityResult.Builder targetQueryExecutionId(String targetQueryExecutionId)

      The ID of the query execution that ran the translated query on DuckDB for validation.

      Parameters:
      targetQueryExecutionId - The ID of the query execution that ran the translated query on DuckDB for validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetQueryExecutionAttempts

      CompatibilityResult.Builder targetQueryExecutionAttempts(Collection<String> targetQueryExecutionAttempts)

      The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.

      Parameters:
      targetQueryExecutionAttempts - The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetQueryExecutionAttempts

      CompatibilityResult.Builder targetQueryExecutionAttempts(String... targetQueryExecutionAttempts)

      The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.

      Parameters:
      targetQueryExecutionAttempts - The IDs of all query executions that were attempted to validate the translated query on DuckDB. Present only when the translated query was validated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultSummary

      CompatibilityResult.Builder resultSummary(String resultSummary)

      A JSON-formatted summary of the validation, including execution and data validation checks, the checks that passed and failed, and the execution times of the original and translated queries.

      Parameters:
      resultSummary - A JSON-formatted summary of the validation, including execution and data validation checks, the checks that passed and failed, and the execution times of the original and translated queries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.