FlattenQueueAdapter
class FlattenQueueAdapter<K : WithStream>(queue: PartitionedQueue<PipelineEvent<K, DestinationRecordRaw>>) : PartitionedQueue<PipelineEvent<K, DlqStepOutput>>
Queue Adapter in order to be able to reuse existing ObjectStorage steps for the DeadLetterQueue.
Because the DlqLoader may batch multiple records and the ObjectLoaderPartFormatterStep consumes record one by one, this Adapter flattens a list of DestinationRecordRaw.