DynamoDbBackfill

abstract class DynamoDbBackfill<I : Any, P : Any> : Backfill

Functions

dynamoDbTable
Link copied to clipboard
abstract fun dynamoDbTable(): DynamoDbTable<I>
Provides the table schema so Backfila knows the type and where the table is.
expressionAttributeValues
Link copied to clipboard
open fun expressionAttributeValues(config: BackfillConfig<P>): Map<String, AttributeValue>?
See ScanRequest.
filterExpression
Link copied to clipboard
open fun filterExpression(config: BackfillConfig<P>): String?
See ScanRequest.
fixedSegmentCount
Link copied to clipboard
open fun fixedSegmentCount(config: BackfillConfig<P>): Int?
Override this to force Backfila to run this number of batches in total, divided among the partitions.
mustHaveProvisionedBillingMode
Link copied to clipboard
open fun mustHaveProvisionedBillingMode(): Boolean
It is rather easy to run a backfill against a dynamo instance that is configured expensively.
partitionCount
Link copied to clipboard
open fun partitionCount(config: BackfillConfig<P>): Int
The number of independent workers to perform the backfill.
runBatch
Link copied to clipboard
abstract fun runBatch(items: List<I>, config: BackfillConfig<P>)
Called for each batch of matching records.
validate
Link copied to clipboard
open fun validate(config: BackfillConfig<P>)
Override this and throw an exception to prevent the backfill from being created.

Properties

dynamoDbTable
Link copied to clipboard
val dynamoDbTable: DynamoDbTable<I>
itemType
Link copied to clipboard
val itemType: KClass<I>

Inheritors

UpdateInPlaceDynamoDbBackfill
Link copied to clipboard