Interface NamedQuery.Builder

  • Method Details

    • name

      The query name.

      Parameters:
      name - The query name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      NamedQuery.Builder description(String description)

      The query description.

      Parameters:
      description - The query description.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • database

      NamedQuery.Builder database(String database)

      The database to which the query belongs.

      Parameters:
      database - The database to which the query belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryString

      NamedQuery.Builder queryString(String queryString)

      The SQL statements that make up the query.

      Parameters:
      queryString - The SQL statements that make up the query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namedQueryId

      NamedQuery.Builder namedQueryId(String namedQueryId)

      The unique identifier of the query.

      Parameters:
      namedQueryId - The unique identifier of the query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workGroup

      NamedQuery.Builder workGroup(String workGroup)

      The name of the workgroup that contains the named query.

      Parameters:
      workGroup - The name of the workgroup that contains the named query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • compatibilityResult

      NamedQuery.Builder compatibilityResult(NamedQueryCompatibilityResult compatibilityResult)

      The result of translating the named query to DuckDB, if a translation has been performed.

      Parameters:
      compatibilityResult - The result of translating the named query to DuckDB, if a translation has been performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • compatibilityResult

      default NamedQuery.Builder compatibilityResult(Consumer<NamedQueryCompatibilityResult.Builder> compatibilityResult)

      The result of translating the named query to DuckDB, if a translation has been performed.

      This is a convenience method that creates an instance of the NamedQueryCompatibilityResult.Builder avoiding the need to create one manually via NamedQueryCompatibilityResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to compatibilityResult(NamedQueryCompatibilityResult).

      Parameters:
      compatibilityResult - a consumer that will call methods on NamedQueryCompatibilityResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: