public class TableMigrationState extends CoordinatorState
| Modifier and Type | Class and Description |
|---|---|
static class |
TableMigrationState.TableMigrationStateHistoryEntry |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_BAKE_TIME_SECONDS
Default bake time in seconds (60 minutes).
|
static String |
HISTORY_ATTRIBUTE_NAME |
static String |
MODIFIED_BY_ATTRIBUTE_NAME |
static String |
MODIFIED_TIMESTAMP_ATTRIBUTE_NAME |
static String |
TABLE_MIGRATION_HASH_KEY
Key value for the item in the CoordinatorState table
|
static String |
TABLE_MIGRATION_STATUS_ATTRIBUTE_NAME
Attribute name in migration state item, whose value is used during
the KCL v3.4 -> v3.5+ table migration process to track whether the
workers have completed migrating all entities to the lease table
or are still performing migration operations.
|
ENTITY_TYPE_ATTRIBUTE_NAME| Constructor and Description |
|---|
TableMigrationState(String modifiedBy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTableMigrationStateHistoryEntry(TableMigrationStatus lastTableMigrationStatus,
String lastModifiedBy,
long lastModifiedTimestamp) |
TableMigrationState |
copy() |
static TableMigrationState |
deserialize(String key,
HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes) |
Map<String,software.amazon.awssdk.services.dynamodb.model.ExpectedAttributeValue> |
getDynamoTableMigrationStatusExpectation() |
Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValueUpdate> |
getDynamoUpdate()
Produce an update map for DynamoDB UpdateItem operations.
|
HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> |
serialize()
Serialize this state's attributes into a map of DynamoDB attribute values.
|
TableMigrationState |
update(TableMigrationStatus tableMigrationStatus,
String modifiedBy) |
getEntityTypepublic static final String TABLE_MIGRATION_HASH_KEY
public static final String TABLE_MIGRATION_STATUS_ATTRIBUTE_NAME
public static final String MODIFIED_BY_ATTRIBUTE_NAME
public static final String MODIFIED_TIMESTAMP_ATTRIBUTE_NAME
public static final String HISTORY_ATTRIBUTE_NAME
public static final long DEFAULT_BAKE_TIME_SECONDS
public TableMigrationState(String modifiedBy)
public HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> serialize()
CoordinatorStatesuper.serialize() and then add their own domain-specific fields.serialize in class CoordinatorStatepublic static TableMigrationState deserialize(String key, HashMap<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes)
public Map<String,software.amazon.awssdk.services.dynamodb.model.ExpectedAttributeValue> getDynamoTableMigrationStatusExpectation()
public TableMigrationState copy()
public TableMigrationState update(TableMigrationStatus tableMigrationStatus, String modifiedBy)
public void addTableMigrationStateHistoryEntry(TableMigrationStatus lastTableMigrationStatus, String lastModifiedBy, long lastModifiedTimestamp)
public Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValueUpdate> getDynamoUpdate()
CoordinatorStategetDynamoUpdate in class CoordinatorStateCopyright © 2026. All rights reserved.