ObjectLoaderPartLoader
@Singleton
Constructors
Link copied to clipboard
constructor(client: ObjectStorageClient<T>, catalog: DestinationCatalog, uploads: UploadsInProgress<T>, destinationConfig: DestinationConfiguration)
Types
Link copied to clipboard
data class LoadedPart<T : RemoteObject<*>>(val upload: Deferred<StreamingUpload<T>>, val objectKey: String, val partIndex: Int, val isFinal: Boolean, val empty: Boolean = false) : ObjectLoaderPartLoader.PartResult<T>
Link copied to clipboard
data class NoPart<T : RemoteObject<*>>(val objectKey: String) : ObjectLoaderPartLoader.PartResult<T>
Link copied to clipboard
Link copied to clipboard
data class State<T : RemoteObject<*>>(val objectKey: String, val streamingUpload: Deferred<StreamingUpload<T>>) : AutoCloseable
Functions
Link copied to clipboard
open suspend override fun accept(input: ObjectLoaderPartFormatter.FormattedPart, state: ObjectLoaderPartLoader.State<T>): BatchAccumulatorResult<ObjectLoaderPartLoader.State<T>, ObjectLoaderPartLoader.PartResult<T>>
Link copied to clipboard
Link copied to clipboard
open suspend override fun finish(state: ObjectLoaderPartLoader.State<T>): FinalOutput<ObjectLoaderPartLoader.State<T>, ObjectLoaderPartLoader.PartResult<T>>