Class TableStatistics

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

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)