Package-level declarations
Types
Link copied to clipboard
@Singleton
Link copied to clipboard
class FileChunkTask<T>(loader: ObjectLoader, catalog: DestinationCatalog, pathFactory: ObjectStoragePathFactory, fileHandleFactory: FileHandleFactory, uploadIdGenerator: UploadIdGenerator, inputQueue: PartitionedQueue<PipelineEvent<StreamKey, DestinationRecordRaw>>, partQueue: PartitionedQueue<PipelineEvent<ObjectKey, ObjectLoaderPartFormatter.FormattedPart>>, partitioner: ObjectLoaderFormattedPartPartitioner<StreamKey, T>, partition: Int) : Task
Given an input stream of file references, reads the files and chunks them into parts, emitting those parts to the partQueue. Once finished chunking a file, it deletes it from local storage.
Link copied to clipboard
@Singleton
@Named(value = "fileCompletedOutputPartitioner")
Link copied to clipboard
File in Kotlin has built-n extensions cannot be directly mocked. This wrapper allows us to mock.
Link copied to clipboard
class FileHandleFactory
Exists to make it easier to test file access (read, delete, etc.) by injecting a mock factory.
Link copied to clipboard
class FilePartIterator(inputStream: InputStream, partSizeBytes: Int, finalPath: String) : Iterator<Part>
Turns a file into a series of Part chunks.
Link copied to clipboard
@Singleton
Link copied to clipboard
class ForwardFileRecordTask<T>(inputQueue: PartitionedQueue<PipelineEvent<StreamKey, ObjectLoaderUploadCompleter.UploadResult<T>>>, outputQueue: PartitionedQueue<PipelineEvent<StreamKey, DestinationRecordRaw>>, partition: Int) : Task
Link copied to clipboard
@Singleton
Link copied to clipboard
@Singleton
Link copied to clipboard
@Singleton
Link copied to clipboard
class RouteEventTask(catalog: DestinationCatalog, inputFlow: Flow<PipelineEvent<StreamKey, DestinationRecordRaw>>, fileQueue: PartitionedQueue<PipelineEvent<StreamKey, DestinationRecordRaw>>, recordQueue: PartitionedQueue<PipelineEvent<StreamKey, DestinationRecordRaw>>, partition: Int) : Task
Link copied to clipboard
Generate a unique upload id to keep track of the upload in the case of file name collisions. Factored out for testability.