ObjectLoaderPartFormatter

@Singleton
@Requires(bean = ObjectLoader::class)
class ObjectLoaderPartFormatter<T : OutputStream>(pathFactory: PathFactory, catalog: DestinationCatalog, writerFactory: BufferedFormattingWriterFactory<T>, loader: ObjectLoader, stateManager: DestinationStateManager<ObjectStorageDestinationState>, @Value(value = "${airbyte.destination.core.record-batch-size-override:null}") val batchSizeOverride: Long? = null, @Named(value = "objectLoaderClampedPartSizeBytes") val clampedPartSizeBytes: Long) : BatchAccumulator<ObjectLoaderPartFormatter.State<T>, StreamKey, DestinationRecordRaw, ObjectLoaderPartFormatter.FormattedPart>

Constructors

Link copied to clipboard
constructor(pathFactory: PathFactory, catalog: DestinationCatalog, writerFactory: BufferedFormattingWriterFactory<T>, loader: ObjectLoader, stateManager: DestinationStateManager<ObjectStorageDestinationState>, @Value(value = "${airbyte.destination.core.record-batch-size-override:null}") batchSizeOverride: Long? = null, @Named(value = "objectLoaderClampedPartSizeBytes") clampedPartSizeBytes: Long)

Types

Link copied to clipboard
data class FormattedPart(val part: Part, val state: BatchState = BatchState.PROCESSED) : WithBatchState
Link copied to clipboard
data class State<T : OutputStream>(val stream: DestinationStream, val writer: BufferedFormattingWriter<T>, val partFactory: PartFactory) : AutoCloseable

Properties

Link copied to clipboard
val batchSizeOverride: Long? = null
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun start(key: StreamKey, part: Int): ObjectLoaderPartFormatter.State<T>
Link copied to clipboard