Class TableStatistics
- java.lang.Object
-
- software.amazon.awssdk.services.databasemigration.model.TableStatistics
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TableStatistics.Builder,TableStatistics>
@Generated("software.amazon.awssdk:codegen") public final class TableStatistics extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TableStatistics.Builder,TableStatistics>
Provides a collection of table statistics in response to a request by the
DescribeTableStatisticsoperation.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTableStatistics.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LongappliedDdls()The number of data definition language (DDL) statements used to build and modify the structure of your tables applied on the target.LongappliedDeletes()The number of delete actions applied on a target table.LongappliedInserts()The number of insert actions applied on a target table.LongappliedUpdates()The number of update actions applied on a target table.static TableStatistics.Builderbuilder()Longddls()The data definition language (DDL) used to build and modify the structure of your tables.Longdeletes()The number of delete actions performed on a table.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongfullLoadCondtnlChkFailedRows()The number of rows that failed conditional checks during the full load operation (valid only for migrations where DynamoDB is the target).InstantfullLoadEndTime()The time when the full load operation completed.LongfullLoadErrorRows()The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB is the target).BooleanfullLoadReloaded()A value that indicates if the table was reloaded (true) or loaded as part of a new full load operation (false).LongfullLoadRows()The number of rows added during the full load operation.InstantfullLoadStartTime()The time when the full load operation started.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Longinserts()The number of insert actions performed on a table.InstantlastUpdateTime()The last time a table was updated.DoubleresyncProgress()Calculates the percentage of failed validations that were successfully resynced to the system.LongresyncRowsAttempted()Records the total number of mismatched data rows where the system attempted to apply fixes in the target database.LongresyncRowsFailed()Records the total number of mismatched data rows where fix attempts failed in the target database.LongresyncRowsSucceeded()Records the total number of mismatched data rows where fixes were successfully applied in the target database.StringresyncState()Records the current state of table resynchronization in the migration task.StringschemaName()The schema name.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TableStatistics.Builder>serializableBuilderClass()StringtableName()The name of the table.StringtableState()The state of the tables described.TableStatistics.BuildertoBuilder()StringtoString()Returns a string representation of this object.Longupdates()The number of update actions performed on a table.LongvalidationFailedRecords()The number of records that failed validation.LongvalidationPendingRecords()The number of records that have yet to be validated.StringvalidationState()The validation state of the table.StringvalidationStateDetails()Additional details about the state of validation.LongvalidationSuspendedRecords()The number of records that couldn't be validated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
schemaName
public final String schemaName()
The schema name.
- Returns:
- The schema name.
-
tableName
public final String tableName()
The name of the table.
- Returns:
- The name of the table.
-
inserts
public final Long inserts()
The number of insert actions performed on a table.
- Returns:
- The number of insert actions performed on a table.
-
deletes
public final Long deletes()
The number of delete actions performed on a table.
- Returns:
- The number of delete actions performed on a table.
-
updates
public final Long updates()
The number of update actions performed on a table.
- Returns:
- The number of update actions performed on a table.
-
ddls
public final Long ddls()
The data definition language (DDL) used to build and modify the structure of your tables.
- Returns:
- The data definition language (DDL) used to build and modify the structure of your tables.
-
appliedInserts
public final Long appliedInserts()
The number of insert actions applied on a target table.
- Returns:
- The number of insert actions applied on a target table.
-
appliedDeletes
public final Long appliedDeletes()
The number of delete actions applied on a target table.
- Returns:
- The number of delete actions applied on a target table.
-
appliedUpdates
public final Long appliedUpdates()
The number of update actions applied on a target table.
- Returns:
- The number of update actions applied on a target table.
-
appliedDdls
public final Long appliedDdls()
The number of data definition language (DDL) statements used to build and modify the structure of your tables applied on the target.
- Returns:
- The number of data definition language (DDL) statements used to build and modify the structure of your tables applied on the target.
-
fullLoadRows
public final Long fullLoadRows()
The number of rows added during the full load operation.
- Returns:
- The number of rows added during the full load operation.
-
fullLoadCondtnlChkFailedRows
public final Long fullLoadCondtnlChkFailedRows()
The number of rows that failed conditional checks during the full load operation (valid only for migrations where DynamoDB is the target).
- Returns:
- The number of rows that failed conditional checks during the full load operation (valid only for migrations where DynamoDB is the target).
-
fullLoadErrorRows
public final Long fullLoadErrorRows()
The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB is the target).
- Returns:
- The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB is the target).
-
fullLoadStartTime
public final Instant fullLoadStartTime()
The time when the full load operation started.
- Returns:
- The time when the full load operation started.
-
fullLoadEndTime
public final Instant fullLoadEndTime()
The time when the full load operation completed.
- Returns:
- The time when the full load operation completed.
-
fullLoadReloaded
public final Boolean fullLoadReloaded()
A value that indicates if the table was reloaded (
true) or loaded as part of a new full load operation (false).- Returns:
- A value that indicates if the table was reloaded (
true) or loaded as part of a new full load operation (false).
-
lastUpdateTime
public final Instant lastUpdateTime()
The last time a table was updated.
- Returns:
- The last time a table was updated.
-
tableState
public final String tableState()
The state of the tables described.
Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | Table is being reloaded
- Returns:
- The state of the tables described.
Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | Table is being reloaded
-
validationPendingRecords
public final Long validationPendingRecords()
The number of records that have yet to be validated.
- Returns:
- The number of records that have yet to be validated.
-
validationFailedRecords
public final Long validationFailedRecords()
The number of records that failed validation.
- Returns:
- The number of records that failed validation.
-
validationSuspendedRecords
public final Long validationSuspendedRecords()
The number of records that couldn't be validated.
- Returns:
- The number of records that couldn't be validated.
-
validationState
public final String validationState()
The validation state of the table.
This parameter can have the following values:
-
Not enabled – Validation isn't enabled for the table in the migration task.
-
Pending records – Some records in the table are waiting for validation.
-
Mismatched records – Some records in the table don't match between the source and target.
-
Suspended records – Some records in the table couldn't be validated.
-
No primary key –The table couldn't be validated because it has no primary key.
-
Table error – The table wasn't validated because it's in an error state and some data wasn't migrated.
-
Validated – All rows in the table are validated. If the table is updated, the status can change from Validated.
-
Error – The table couldn't be validated because of an unexpected error.
-
Pending validation – The table is waiting validation.
-
Preparing table – Preparing the table enabled in the migration task for validation.
-
Pending revalidation – All rows in the table are pending validation after the table was updated.
- Returns:
- The validation state of the table.
This parameter can have the following values:
-
Not enabled – Validation isn't enabled for the table in the migration task.
-
Pending records – Some records in the table are waiting for validation.
-
Mismatched records – Some records in the table don't match between the source and target.
-
Suspended records – Some records in the table couldn't be validated.
-
No primary key –The table couldn't be validated because it has no primary key.
-
Table error – The table wasn't validated because it's in an error state and some data wasn't migrated.
-
Validated – All rows in the table are validated. If the table is updated, the status can change from Validated.
-
Error – The table couldn't be validated because of an unexpected error.
-
Pending validation – The table is waiting validation.
-
Preparing table – Preparing the table enabled in the migration task for validation.
-
Pending revalidation – All rows in the table are pending validation after the table was updated.
-
-
-
validationStateDetails
public final String validationStateDetails()
Additional details about the state of validation.
- Returns:
- Additional details about the state of validation.
-
resyncState
public final String resyncState()
Records the current state of table resynchronization in the migration task.
This parameter can have the following values:
-
Not enabled – Resync is not enabled for the table in the migration task.
-
Pending – The tables are waiting for resync.
-
In progress – Resync in progress for some records in the table.
-
No primary key – The table could not be resynced because it has no primary key.
-
Last resync at:
date/time– Resync session is finished at time. Time provided in UTC format.
- Returns:
- Records the current state of table resynchronization in the migration task.
This parameter can have the following values:
-
Not enabled – Resync is not enabled for the table in the migration task.
-
Pending – The tables are waiting for resync.
-
In progress – Resync in progress for some records in the table.
-
No primary key – The table could not be resynced because it has no primary key.
-
Last resync at:
date/time– Resync session is finished at time. Time provided in UTC format.
-
-
-
resyncRowsAttempted
public final Long resyncRowsAttempted()
Records the total number of mismatched data rows where the system attempted to apply fixes in the target database.
- Returns:
- Records the total number of mismatched data rows where the system attempted to apply fixes in the target database.
-
resyncRowsSucceeded
public final Long resyncRowsSucceeded()
Records the total number of mismatched data rows where fixes were successfully applied in the target database.
- Returns:
- Records the total number of mismatched data rows where fixes were successfully applied in the target database.
-
resyncRowsFailed
public final Long resyncRowsFailed()
Records the total number of mismatched data rows where fix attempts failed in the target database.
- Returns:
- Records the total number of mismatched data rows where fix attempts failed in the target database.
-
resyncProgress
public final Double resyncProgress()
Calculates the percentage of failed validations that were successfully resynced to the system.
- Returns:
- Calculates the percentage of failed validations that were successfully resynced to the system.
-
toBuilder
public TableStatistics.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TableStatistics.Builder,TableStatistics>
-
builder
public static TableStatistics.Builder builder()
-
serializableBuilderClass
public static Class<? extends TableStatistics.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-