S3DatasourceBackfill

abstract class S3DatasourceBackfill<R : Any, P : Any> : Backfill

Functions

getBucket
Link copied to clipboard
abstract fun getBucket(config: PrepareBackfillConfig<P>): String
Bucket where the S3 files are located
getPrefix
Link copied to clipboard
open fun getPrefix(config: PrepareBackfillConfig<P>): String
Calculates the prefix of S3 objects to process.
runBatch
Link copied to clipboard
open fun runBatch(records: List<R>, config: BackfillConfig<P>)
Called for each batch of records.
runOne
Link copied to clipboard
open fun runOne(record: R, config: BackfillConfig<P>)
Called for each record.
validate
Link copied to clipboard
open fun validate(config: PrepareBackfillConfig<P>)
Override this and throw an exception to prevent the backfill from being created.

Properties

recordStrategy
Link copied to clipboard
abstract val recordStrategy: RecordStrategy<R>
Produces records from the S3 file.
staticPrefix
Link copied to clipboard
open val staticPrefix: String
Static element of the prefix, this is a helper used by the default getPrefix.