mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
30 lines
641 B
C++
30 lines
641 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class StorageEmbeddedRocksDB;
|
|
struct StorageInMemoryMetadata;
|
|
using StorageMetadataPtr = std::shared_ptr<const StorageInMemoryMetadata>;
|
|
|
|
class EmbeddedRocksDBBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
EmbeddedRocksDBBlockOutputStream(
|
|
StorageEmbeddedRocksDB & storage_,
|
|
const StorageMetadataPtr & metadata_snapshot_);
|
|
|
|
Block getHeader() const override;
|
|
void write(const Block & block) override;
|
|
|
|
private:
|
|
StorageEmbeddedRocksDB & storage;
|
|
StorageMetadataPtr metadata_snapshot;
|
|
size_t primary_key_pos = 0;
|
|
};
|
|
|
|
}
|