Interface QueryGenerationContext.Builder

    • Method Detail

      • tables

        QueryGenerationContext.Builder tables​(Collection<QueryGenerationTable> tables)

        An array of objects, each of which defines information about a table in the database.

        Parameters:
        tables - An array of objects, each of which defines information about a table in the database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tables

        QueryGenerationContext.Builder tables​(QueryGenerationTable... tables)

        An array of objects, each of which defines information about a table in the database.

        Parameters:
        tables - An array of objects, each of which defines information about a table in the database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • curatedQueries

        QueryGenerationContext.Builder curatedQueries​(Collection<CuratedQuery> curatedQueries)

        An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.

        Parameters:
        curatedQueries - An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • curatedQueries

        QueryGenerationContext.Builder curatedQueries​(CuratedQuery... curatedQueries)

        An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.

        Parameters:
        curatedQueries - An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • curatedQueries

        QueryGenerationContext.Builder curatedQueries​(Consumer<CuratedQuery.Builder>... curatedQueries)

        An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #curatedQueries(List).

        Parameters:
        curatedQueries - a consumer that will call methods on CuratedQuery.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #curatedQueries(java.util.Collection)