client-s3
/
app.cash.backfila.client.s3
/
S3DatasourceBackfill
S3
Datasource
Backfill
abstract class
S3DatasourceBackfill
<
R
:
Any
,
P
:
Any
> :
Backfill
Content copied to clipboard
Functions
Properties
Functions
getBucket
Link copied to clipboard
abstract fun
getBucket
(config:
PrepareBackfillConfig
<
P
>):
String
Content copied to clipboard
Bucket where the S3 files are located
getPrefix
Link copied to clipboard
open fun
getPrefix
(config:
PrepareBackfillConfig
<
P
>):
String
Content copied to clipboard
Calculates the prefix of S3 objects to process.
runBatch
Link copied to clipboard
open fun
runBatch
(records:
List
<
R
>, config:
BackfillConfig
<
P
>)
Content copied to clipboard
Called for each batch of records.
runOne
Link copied to clipboard
open fun
runOne
(record:
R
, config:
BackfillConfig
<
P
>)
Content copied to clipboard
Called for each record.
validate
Link copied to clipboard
open fun
validate
(config:
PrepareBackfillConfig
<
P
>)
Content copied to clipboard
Override this and throw an exception to prevent the backfill from being created.
Properties
recordStrategy
Link copied to clipboard
abstract val
recordStrategy
:
RecordStrategy
<
R
>
Content copied to clipboard
Produces records from the S3 file.
staticPrefix
Link copied to clipboard
open val
staticPrefix
:
String
Content copied to clipboard
Static element of the prefix, this is a helper used by the default getPrefix.