MCPcopy Create free account
hub / github.com/ByConity/ByConity / Stream

Method Stream

src/Storages/StorageTinyLog.cpp:269–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 struct Stream
268 {
269 Stream(const DiskPtr & disk, const String & data_path, CompressionCodecPtr codec, size_t max_compress_block_size) :
270 plain(disk->writeFile(data_path, {.buffer_size = max_compress_block_size, .mode = WriteMode::Append})),
271 compressed(*plain, std::move(codec), max_compress_block_size)
272 {
273 }
274
275 std::unique_ptr<WriteBuffer> plain;
276 CompressedWriteBuffer compressed;

Callers

nothing calls this directly

Calls 1

writeFileMethod · 0.45

Tested by

no test coverage detected