@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryExecution extends Object implements Serializable, Cloneable, StructuredPojo
Information about a single instance of a query execution.
Constructor and Description |
---|
QueryExecution() |
Modifier and Type | Method and Description |
---|---|
QueryExecution |
clone() |
boolean |
equals(Object obj) |
EngineVersion |
getEngineVersion()
The engine version that executed the query.
|
List<String> |
getExecutionParameters()
A list of values for the parameters in a query.
|
String |
getQuery()
The SQL query statements which the query execution ran.
|
QueryExecutionContext |
getQueryExecutionContext()
The database in which the query execution occurred.
|
String |
getQueryExecutionId()
The unique identifier for each query execution.
|
ResultConfiguration |
getResultConfiguration()
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query
results.
|
ResultReuseConfiguration |
getResultReuseConfiguration()
Specifies the query result reuse behavior that was used for the query.
|
String |
getStatementType()
The type of query statement that was run.
|
QueryExecutionStatistics |
getStatistics()
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to
process, and the type of statement that was run.
|
QueryExecutionStatus |
getStatus()
The completion date, current state, submission time, and state change reason (if applicable) for the query
execution.
|
String |
getWorkGroup()
The name of the workgroup in which the query ran.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setEngineVersion(EngineVersion engineVersion)
The engine version that executed the query.
|
void |
setExecutionParameters(Collection<String> executionParameters)
A list of values for the parameters in a query.
|
void |
setQuery(String query)
The SQL query statements which the query execution ran.
|
void |
setQueryExecutionContext(QueryExecutionContext queryExecutionContext)
The database in which the query execution occurred.
|
void |
setQueryExecutionId(String queryExecutionId)
The unique identifier for each query execution.
|
void |
setResultConfiguration(ResultConfiguration resultConfiguration)
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query
results.
|
void |
setResultReuseConfiguration(ResultReuseConfiguration resultReuseConfiguration)
Specifies the query result reuse behavior that was used for the query.
|
void |
setStatementType(String statementType)
The type of query statement that was run.
|
void |
setStatistics(QueryExecutionStatistics statistics)
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to
process, and the type of statement that was run.
|
void |
setStatus(QueryExecutionStatus status)
The completion date, current state, submission time, and state change reason (if applicable) for the query
execution.
|
void |
setWorkGroup(String workGroup)
The name of the workgroup in which the query ran.
|
String |
toString()
Returns a string representation of this object.
|
QueryExecution |
withEngineVersion(EngineVersion engineVersion)
The engine version that executed the query.
|
QueryExecution |
withExecutionParameters(Collection<String> executionParameters)
A list of values for the parameters in a query.
|
QueryExecution |
withExecutionParameters(String... executionParameters)
A list of values for the parameters in a query.
|
QueryExecution |
withQuery(String query)
The SQL query statements which the query execution ran.
|
QueryExecution |
withQueryExecutionContext(QueryExecutionContext queryExecutionContext)
The database in which the query execution occurred.
|
QueryExecution |
withQueryExecutionId(String queryExecutionId)
The unique identifier for each query execution.
|
QueryExecution |
withResultConfiguration(ResultConfiguration resultConfiguration)
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query
results.
|
QueryExecution |
withResultReuseConfiguration(ResultReuseConfiguration resultReuseConfiguration)
Specifies the query result reuse behavior that was used for the query.
|
QueryExecution |
withStatementType(StatementType statementType)
The type of query statement that was run.
|
QueryExecution |
withStatementType(String statementType)
The type of query statement that was run.
|
QueryExecution |
withStatistics(QueryExecutionStatistics statistics)
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to
process, and the type of statement that was run.
|
QueryExecution |
withStatus(QueryExecutionStatus status)
The completion date, current state, submission time, and state change reason (if applicable) for the query
execution.
|
QueryExecution |
withWorkGroup(String workGroup)
The name of the workgroup in which the query ran.
|
public void setQueryExecutionId(String queryExecutionId)
The unique identifier for each query execution.
queryExecutionId
- The unique identifier for each query execution.public String getQueryExecutionId()
The unique identifier for each query execution.
public QueryExecution withQueryExecutionId(String queryExecutionId)
The unique identifier for each query execution.
queryExecutionId
- The unique identifier for each query execution.public void setQuery(String query)
The SQL query statements which the query execution ran.
query
- The SQL query statements which the query execution ran.public String getQuery()
The SQL query statements which the query execution ran.
public QueryExecution withQuery(String query)
The SQL query statements which the query execution ran.
query
- The SQL query statements which the query execution ran.public void setStatementType(String statementType)
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
.
UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
,
or DESCRIBE TABLE
.
statementType
- The type of query statement that was run. DDL
indicates DDL query statements.
DML
indicates DML (Data Manipulation Language) query statements, such as
CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and
DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.StatementType
public String getStatementType()
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
.
UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
,
or DESCRIBE TABLE
.
DDL
indicates DDL query statements.
DML
indicates DML (Data Manipulation Language) query statements, such as
CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and
DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.StatementType
public QueryExecution withStatementType(String statementType)
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
.
UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
,
or DESCRIBE TABLE
.
statementType
- The type of query statement that was run. DDL
indicates DDL query statements.
DML
indicates DML (Data Manipulation Language) query statements, such as
CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and
DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.StatementType
public QueryExecution withStatementType(StatementType statementType)
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
.
UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
,
or DESCRIBE TABLE
.
statementType
- The type of query statement that was run. DDL
indicates DDL query statements.
DML
indicates DML (Data Manipulation Language) query statements, such as
CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and
DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.StatementType
public void setResultConfiguration(ResultConfiguration resultConfiguration)
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
resultConfiguration
- The location in Amazon S3 where query results were stored and the encryption option, if any, used for
query results. These are known as "client-side settings". If workgroup settings override client-side
settings, then the query uses the location for the query results and the encryption configuration that are
specified for the workgroup.public ResultConfiguration getResultConfiguration()
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
public QueryExecution withResultConfiguration(ResultConfiguration resultConfiguration)
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
resultConfiguration
- The location in Amazon S3 where query results were stored and the encryption option, if any, used for
query results. These are known as "client-side settings". If workgroup settings override client-side
settings, then the query uses the location for the query results and the encryption configuration that are
specified for the workgroup.public void setResultReuseConfiguration(ResultReuseConfiguration resultReuseConfiguration)
Specifies the query result reuse behavior that was used for the query.
resultReuseConfiguration
- Specifies the query result reuse behavior that was used for the query.public ResultReuseConfiguration getResultReuseConfiguration()
Specifies the query result reuse behavior that was used for the query.
public QueryExecution withResultReuseConfiguration(ResultReuseConfiguration resultReuseConfiguration)
Specifies the query result reuse behavior that was used for the query.
resultReuseConfiguration
- Specifies the query result reuse behavior that was used for the query.public void setQueryExecutionContext(QueryExecutionContext queryExecutionContext)
The database in which the query execution occurred.
queryExecutionContext
- The database in which the query execution occurred.public QueryExecutionContext getQueryExecutionContext()
The database in which the query execution occurred.
public QueryExecution withQueryExecutionContext(QueryExecutionContext queryExecutionContext)
The database in which the query execution occurred.
queryExecutionContext
- The database in which the query execution occurred.public void setStatus(QueryExecutionStatus status)
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
status
- The completion date, current state, submission time, and state change reason (if applicable) for the query
execution.public QueryExecutionStatus getStatus()
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
public QueryExecution withStatus(QueryExecutionStatus status)
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
status
- The completion date, current state, submission time, and state change reason (if applicable) for the query
execution.public void setStatistics(QueryExecutionStatistics statistics)
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
statistics
- Query execution statistics, such as the amount of data scanned, the amount of time that the query took to
process, and the type of statement that was run.public QueryExecutionStatistics getStatistics()
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
public QueryExecution withStatistics(QueryExecutionStatistics statistics)
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
statistics
- Query execution statistics, such as the amount of data scanned, the amount of time that the query took to
process, and the type of statement that was run.public void setWorkGroup(String workGroup)
The name of the workgroup in which the query ran.
workGroup
- The name of the workgroup in which the query ran.public String getWorkGroup()
The name of the workgroup in which the query ran.
public QueryExecution withWorkGroup(String workGroup)
The name of the workgroup in which the query ran.
workGroup
- The name of the workgroup in which the query ran.public void setEngineVersion(EngineVersion engineVersion)
The engine version that executed the query.
engineVersion
- The engine version that executed the query.public EngineVersion getEngineVersion()
The engine version that executed the query.
public QueryExecution withEngineVersion(EngineVersion engineVersion)
The engine version that executed the query.
engineVersion
- The engine version that executed the query.public List<String> getExecutionParameters()
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.
public void setExecutionParameters(Collection<String> executionParameters)
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.
executionParameters
- A list of values for the parameters in a query. The values are applied sequentially to the parameters in
the query in the order in which the parameters occur.public QueryExecution withExecutionParameters(String... executionParameters)
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.
NOTE: This method appends the values to the existing list (if any). Use
setExecutionParameters(java.util.Collection)
or withExecutionParameters(java.util.Collection)
if you want to override the existing values.
executionParameters
- A list of values for the parameters in a query. The values are applied sequentially to the parameters in
the query in the order in which the parameters occur.public QueryExecution withExecutionParameters(Collection<String> executionParameters)
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.
executionParameters
- A list of values for the parameters in a query. The values are applied sequentially to the parameters in
the query in the order in which the parameters occur.public String toString()
toString
in class Object
Object.toString()
public QueryExecution clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.