20 const std::vector<ForeignStorageColumnBuffer>& column_buffers) {
22 for (
const auto& column_buffer : column_buffers) {
23 append(column_buffer.chunk_key,
24 column_buffer.sql_type,
25 &column_buffer.buff[0],
26 column_buffer.buff.size());
33 const size_t numBytes) {
35 const auto it =
files_.find(chunk_key);
37 const auto& src = it->second;
39 memcpy(dest, &src[0], numBytes);
49 const size_t numBytes) {
50 files_[chunk_key].insert(
files_[chunk_key].end(), src, src + numBytes);
std::vector< int > ChunkKey
std::map< ChunkKey, std::vector< int8_t > > files_
void append(const std::vector< ForeignStorageColumnBuffer > &column_buffers) override
std::string getType() const override
void read(const ChunkKey &chunk_key, const SQLTypeInfo &sql_type, int8_t *dest, const size_t numBytes) override