partition.hpp
1 
6 #pragma once
7 
8 #include <unordered_map>
9 #include <vector>
10 
11 #include <rapidsmpf/buffer/content_description.hpp>
12 #include <rapidsmpf/buffer/packed_data.hpp>
13 #include <rapidsmpf/shuffler/chunk.hpp>
14 #include <rapidsmpf/streaming/core/message.hpp>
15 
16 namespace rapidsmpf::streaming {
17 
28  std::unordered_map<shuffler::PartID, PackedData> data;
29 };
30 
41  std::vector<PackedData> data;
42 };
43 
51 
59 
68  std::uint64_t sequence_number, std::unique_ptr<PartitionMapChunk> chunk
69 );
70 
79  std::uint64_t sequence_number, std::unique_ptr<PartitionVectorChunk> chunk
80 );
81 
82 } // namespace rapidsmpf::streaming
Description of an object's content.
Type-erased message wrapper around a payload.
Definition: message.hpp:27
Message to_message(std::uint64_t sequence_number, std::unique_ptr< PackedDataChunk > chunk)
Wrap a PackedDataChunk into a Message.
Definition: packed_data.hpp:44
ContentDescription get_content_description(PackedDataChunk const &obj)
Generate a content description for a PackedDataChunk.
Definition: packed_data.hpp:30
Chunk of packed partitions identified by partition ID.
Definition: partition.hpp:24
std::unordered_map< shuffler::PartID, PackedData > data
Packed data for each partition, keyed by partition ID.
Definition: partition.hpp:28
Chunk of packed partitions stored as a vector.
Definition: partition.hpp:37
std::vector< PackedData > data
Packed data for each partition stored in a vector.
Definition: partition.hpp:41