Interface SqlQuery.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SqlQuery.Builder,,SqlQuery> SdkBuilder<SqlQuery.Builder,,SqlQuery> SdkPojo
- Enclosing class:
SqlQuery
-
Method Summary
Modifier and TypeMethodDescriptionOne read-only SELECT or WITH statement, without a trailing;, in PostgreSQL-compatible SQL as the query engine parses it.tables(Collection<SqlTableReference> tables) Every table the statement reads.tables(Consumer<SqlTableReference.Builder>... tables) Every table the statement reads.tables(SqlTableReference... tables) Every table the statement reads.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
statement
One read-only SELECT or WITH statement, without a trailing
;, in PostgreSQL-compatible SQL as the query engine parses it. Double-quote every identifier: unquoted identifiers are upper-cased and matching is case-sensitive. Reference each table by its quoted, fully qualified AWS Glue table ARN, for exampleSELECT "order_id" FROM "arn:aws:glue:us-east-1:111122223333:table/db/orders" LIMIT 10. At most 50,000 rows are returned whatever the statement's own LIMIT.- Parameters:
statement- One read-only SELECT or WITH statement, without a trailing;, in PostgreSQL-compatible SQL as the query engine parses it. Double-quote every identifier: unquoted identifiers are upper-cased and matching is case-sensitive. Reference each table by its quoted, fully qualified AWS Glue table ARN, for exampleSELECT "order_id" FROM "arn:aws:glue:us-east-1:111122223333:table/db/orders" LIMIT 10. At most 50,000 rows are returned whatever the statement's own LIMIT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tables
Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.
- Parameters:
tables- Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tables
Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.
- Parameters:
tables- Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tables
Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.
This is a convenience method that creates an instance of theSqlTableReference.Builderavoiding the need to create one manually viaSqlTableReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totables(List<SqlTableReference>).- Parameters:
tables- a consumer that will call methods onSqlTableReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-