@Generated(value="software.amazon.awssdk:codegen") public final class SubStatementData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubStatementData.Builder,SubStatementData>
Information about an SQL statement.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubStatementData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SubStatementData.Builder |
builder() |
Instant |
createdAt()
The date and time (UTC) the statement was created.
|
Long |
duration()
The amount of time in nanoseconds that the statement ran.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
error()
The error message from the cluster if the SQL statement encountered an error while running.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
hasResultSet()
A value that indicates whether the statement has a result set.
|
String |
id()
The identifier of the SQL statement.
|
String |
queryString()
The SQL statement text.
|
Long |
redshiftQueryId()
The SQL statement identifier.
|
Long |
resultRows()
Either the number of rows returned from the SQL statement or the number of rows affected.
|
Long |
resultSize()
The size in bytes of the returned results.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SubStatementData.Builder> |
serializableBuilderClass() |
StatementStatusString |
status()
The status of the SQL statement.
|
String |
statusAsString()
The status of the SQL statement.
|
SubStatementData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
The date and time (UTC) that the statement metadata was last updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant createdAt()
The date and time (UTC) the statement was created.
public final Long duration()
The amount of time in nanoseconds that the statement ran.
public final String error()
The error message from the cluster if the SQL statement encountered an error while running.
public final Boolean hasResultSet()
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.
public final String id()
The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon
Redshift Data API. A suffix indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL
statement of a batch query.
d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the
second SQL statement of a batch query.public final String queryString()
The SQL statement text.
public final Long redshiftQueryId()
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
public final Long resultRows()
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is
greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE,
DELETE, COPY, and others. A -1 indicates the value is null.
-1 indicates the value is null.public final Long resultSize()
The size in bytes of the returned results. A -1 indicates the value is null.
-1 indicates the value is null.public final StatementStatusString status()
The status of the SQL statement. An example is the that the SQL statement finished.
If the service returns an enum value that is not available in the current SDK version, status will
return StatementStatusString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
StatementStatusStringpublic final String statusAsString()
The status of the SQL statement. An example is the that the SQL statement finished.
If the service returns an enum value that is not available in the current SDK version, status will
return StatementStatusString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
StatementStatusStringpublic final Instant updatedAt()
The date and time (UTC) that the statement metadata was last updated.
public SubStatementData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SubStatementData.Builder,SubStatementData>public static SubStatementData.Builder builder()
public static Class<? extends SubStatementData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.