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 DescribeTableStatistics operation.

See Also:
  • Method Details

    • 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.
    • toBuilder

      public TableStatistics.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<TableStatistics.Builder,TableStatistics>
      Returns:
      a builder for type T
    • builder

      public static TableStatistics.Builder builder()
    • serializableBuilderClass

      public static Class<? extends TableStatistics.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.