ObjectLoaderPartFormatter
@Singleton
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
Functions
Link copied to clipboard
open suspend override fun accept(input: DestinationRecordRaw, state: ObjectLoaderPartFormatter.State<T>): BatchAccumulatorResult<ObjectLoaderPartFormatter.State<T>, ObjectLoaderPartFormatter.FormattedPart>
Link copied to clipboard
open suspend override fun finish(state: ObjectLoaderPartFormatter.State<T>): FinalOutput<ObjectLoaderPartFormatter.State<T>, ObjectLoaderPartFormatter.FormattedPart>
Link copied to clipboard