Enhanced version of SCollection with dynamic destinations methods.
Dynamic file destinations settings.
Dynamic file destinations settings. Output path is <path>/<destination>/part-<shard><suffix>
for regular writes and <path>/<destination>/part-<window>-<shard><suffix>
for windowed
writes, where <destination>
is computed with destinationFn
.
path
default <destination>
for empty collections
preserves windowing of input elements and writes them to files based on the element's window
the number of shards to use, or 0 to let the system decide, must be > 0 when
windowedWrites
is true
Companion object for FileDestinations.
IO package for dynamic destinations. Import All.
import com.spotify.scio.io.dynamic._