Struct aws_sdk_glue::types::builders::SparkSqlBuilder
source · #[non_exhaustive]pub struct SparkSqlBuilder { /* private fields */ }Expand description
A builder for SparkSql.
Implementations§
source§impl SparkSqlBuilder
impl SparkSqlBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the transform node.
This field is required.sourcepub fn inputs(self, input: impl Into<String>) -> Self
pub fn inputs(self, input: impl Into<String>) -> Self
Appends an item to inputs.
To override the contents of this collection use set_inputs.
The data inputs identified by their node names. You can associate a table name with each input node to use in the SQL query. The name you choose must meet the Spark SQL naming restrictions.
sourcepub fn set_inputs(self, input: Option<Vec<String>>) -> Self
pub fn set_inputs(self, input: Option<Vec<String>>) -> Self
The data inputs identified by their node names. You can associate a table name with each input node to use in the SQL query. The name you choose must meet the Spark SQL naming restrictions.
sourcepub fn get_inputs(&self) -> &Option<Vec<String>>
pub fn get_inputs(&self) -> &Option<Vec<String>>
The data inputs identified by their node names. You can associate a table name with each input node to use in the SQL query. The name you choose must meet the Spark SQL naming restrictions.
sourcepub fn sql_query(self, input: impl Into<String>) -> Self
pub fn sql_query(self, input: impl Into<String>) -> Self
A SQL query that must use Spark SQL syntax and return a single data set.
This field is required.sourcepub fn set_sql_query(self, input: Option<String>) -> Self
pub fn set_sql_query(self, input: Option<String>) -> Self
A SQL query that must use Spark SQL syntax and return a single data set.
sourcepub fn get_sql_query(&self) -> &Option<String>
pub fn get_sql_query(&self) -> &Option<String>
A SQL query that must use Spark SQL syntax and return a single data set.
sourcepub fn sql_aliases(self, input: SqlAlias) -> Self
pub fn sql_aliases(self, input: SqlAlias) -> Self
Appends an item to sql_aliases.
To override the contents of this collection use set_sql_aliases.
A list of aliases. An alias allows you to specify what name to use in the SQL for a given input. For example, you have a datasource named "MyDataSource". If you specify From as MyDataSource, and Alias as SqlName, then in your SQL you can do:
select * from SqlName
and that gets data from MyDataSource.
sourcepub fn set_sql_aliases(self, input: Option<Vec<SqlAlias>>) -> Self
pub fn set_sql_aliases(self, input: Option<Vec<SqlAlias>>) -> Self
A list of aliases. An alias allows you to specify what name to use in the SQL for a given input. For example, you have a datasource named "MyDataSource". If you specify From as MyDataSource, and Alias as SqlName, then in your SQL you can do:
select * from SqlName
and that gets data from MyDataSource.
sourcepub fn get_sql_aliases(&self) -> &Option<Vec<SqlAlias>>
pub fn get_sql_aliases(&self) -> &Option<Vec<SqlAlias>>
A list of aliases. An alias allows you to specify what name to use in the SQL for a given input. For example, you have a datasource named "MyDataSource". If you specify From as MyDataSource, and Alias as SqlName, then in your SQL you can do:
select * from SqlName
and that gets data from MyDataSource.
sourcepub fn output_schemas(self, input: GlueSchema) -> Self
pub fn output_schemas(self, input: GlueSchema) -> Self
Appends an item to output_schemas.
To override the contents of this collection use set_output_schemas.
Specifies the data schema for the SparkSQL transform.
sourcepub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
pub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
Specifies the data schema for the SparkSQL transform.
sourcepub fn get_output_schemas(&self) -> &Option<Vec<GlueSchema>>
pub fn get_output_schemas(&self) -> &Option<Vec<GlueSchema>>
Specifies the data schema for the SparkSQL transform.
Trait Implementations§
source§impl Clone for SparkSqlBuilder
impl Clone for SparkSqlBuilder
source§fn clone(&self) -> SparkSqlBuilder
fn clone(&self) -> SparkSqlBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SparkSqlBuilder
impl Debug for SparkSqlBuilder
source§impl Default for SparkSqlBuilder
impl Default for SparkSqlBuilder
source§fn default() -> SparkSqlBuilder
fn default() -> SparkSqlBuilder
source§impl PartialEq for SparkSqlBuilder
impl PartialEq for SparkSqlBuilder
source§fn eq(&self, other: &SparkSqlBuilder) -> bool
fn eq(&self, other: &SparkSqlBuilder) -> bool
self and other values to be equal, and is used
by ==.