|
VLink
2.0.0
A high-performance communication middleware
|
Recording behaviour, split policy and resource budgets. 更多...
#include <bag_writer.h>
Public 成员函数 | |
| Config () | |
Public 属性 | |
| std::string | tag_name |
| Optional tag stored in the bag header. 更多... | |
| CompressType | compress {CompressType::kCompressNone} |
| Compression codec selector. 更多... | |
| bool | wal_mode {false} |
| Enable SQLite WAL for crash resilience. 更多... | |
| bool | enable_limit {false} |
| When true, evict oldest rows at the row/byte limit. 更多... | |
| bool | split_name_by_time {false} |
| Append a timestamp suffix to split filenames. 更多... | |
| bool | sync_mode {false} |
| Disable periodic cache-flush timer for VDB writes. 更多... | |
| bool | optimize_on_exit {false} |
| Run VACUUM/OPTIMIZE while closing the file. 更多... | |
| int64_t | max_row_count {5'000'000'000LL} |
| SQLite row cap; either evicts or fails new writes. 更多... | |
| int64_t | max_bytes_size {1024LL * 1024LL * 1024LL * 512LL} |
| SQLite byte cap; either evicts or fails new writes. 更多... | |
| int64_t | split_by_size {1024LL * 1024LL * 1024LL * 1LL} |
| Split threshold in bytes (0 disables). 更多... | |
| int64_t | split_by_time {0} |
| Split interval in milliseconds (0 disables). 更多... | |
| int64_t | begin_time {0} |
| Anchor (ms) used by time-based splits. 更多... | |
| int64_t | cache_size {1024LL * 1024LL * 4} |
| VDB commit chunk / MCAP chunk size in bytes. 更多... | |
| int64_t | compress_start_size {128} |
| Minimum payload size eligible for compression. 更多... | |
| int64_t | compress_level {3} |
| Codec-specific compression level. 更多... | |
| int64_t | max_task_depth {20000} |
| Maximum pending writes in the loop queue. 更多... | |
| int64_t | max_memory_size {1024LL * 1024LL * 1024LL * 2LL} |
| Maximum in-memory cache size in bytes. 更多... | |
| int64_t | start_timestamp {0} |
| Override for the wall-clock start timestamp (ms). 更多... | |
| std::unordered_set< std::string > | ignore_compress_urls |
| URLs whose payloads must never be compressed. 更多... | |
Recording behaviour, split policy and resource budgets.
Sizes are expressed in bytes and durations in milliseconds unless explicitly stated.
|
inline |
| int64_t vlink::BagWriter::Config::begin_time {0} |
Anchor (ms) used by time-based splits.
| int64_t vlink::BagWriter::Config::cache_size {1024LL * 1024LL * 4} |
VDB commit chunk / MCAP chunk size in bytes.
| CompressType vlink::BagWriter::Config::compress {CompressType::kCompressNone} |
Compression codec selector.
| int64_t vlink::BagWriter::Config::compress_level {3} |
Codec-specific compression level.
| int64_t vlink::BagWriter::Config::compress_start_size {128} |
Minimum payload size eligible for compression.
| bool vlink::BagWriter::Config::enable_limit {false} |
When true, evict oldest rows at the row/byte limit.
| std::unordered_set<std::string> vlink::BagWriter::Config::ignore_compress_urls |
URLs whose payloads must never be compressed.
| int64_t vlink::BagWriter::Config::max_bytes_size {1024LL * 1024LL * 1024LL * 512LL} |
SQLite byte cap; either evicts or fails new writes.
| int64_t vlink::BagWriter::Config::max_memory_size {1024LL * 1024LL * 1024LL * 2LL} |
Maximum in-memory cache size in bytes.
| int64_t vlink::BagWriter::Config::max_row_count {5'000'000'000LL} |
SQLite row cap; either evicts or fails new writes.
| int64_t vlink::BagWriter::Config::max_task_depth {20000} |
Maximum pending writes in the loop queue.
| bool vlink::BagWriter::Config::optimize_on_exit {false} |
Run VACUUM/OPTIMIZE while closing the file.
| int64_t vlink::BagWriter::Config::split_by_size {1024LL * 1024LL * 1024LL * 1LL} |
Split threshold in bytes (0 disables).
| int64_t vlink::BagWriter::Config::split_by_time {0} |
Split interval in milliseconds (0 disables).
| bool vlink::BagWriter::Config::split_name_by_time {false} |
Append a timestamp suffix to split filenames.
| int64_t vlink::BagWriter::Config::start_timestamp {0} |
Override for the wall-clock start timestamp (ms).
| bool vlink::BagWriter::Config::sync_mode {false} |
Disable periodic cache-flush timer for VDB writes.
| std::string vlink::BagWriter::Config::tag_name |
Optional tag stored in the bag header.
| bool vlink::BagWriter::Config::wal_mode {false} |
Enable SQLite WAL for crash resilience.