DVBackfill class final

Copies source into target for every row of table, chunked by key.

Constructors

DVBackfill({required DVDatabaseAdapter database, required String id, required String table, required String key, required String source, required String target, required Object? convert(Object? source), int chunkSize = 1000, DateTime clock()?})

Properties

chunkSize → int
final
convert → Object? Function(Object? source)
What the new shape should hold for a value of the old one.
final
database → DVDatabaseAdapter
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Names the backfill in its records; stable across restarts.
final
key → String
final
paused → Future<bool>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
final
table → String
final
target → String
final

Methods

backfillNext() → Future<DVBackfillChunk?>
Copies the next chunk, or returns null when no rows remain.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
Stops the backfill at its next chunk boundary, across restarts.
progress() → Future<DVBackfillProgress>
Every recorded chunk and whether the backfill is complete.
resume() → Future<void>
run({int? maxChunks, DVBackfillThrottle? throttle, DVBackfillLoad load()?, Future<void> sleep(Duration)?}) → Future<DVBackfillRun>
Copies chunks until none remain, the backfill is paused, or maxChunks have been copied, paced by throttle when there is one.
toString() → String
A string representation of this object.
inherited
verify({int? chunk}) → Future<List<DVSchemaFinding>>
Hashes every recorded chunk -- or only chunk -- on both shapes.

Operators

operator ==(Object other) → bool
The equality operator.
inherited