VLink  2.0.0
A high-performance communication middleware
vlink::BagWriter::Config结构体 参考final

Recording behaviour, split policy and resource budgets. 更多...

#include <bag_writer.h>

vlink::BagWriter::Config 的协作图:

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.

构造及析构函数说明

◆ Config()

vlink::BagWriter::Config::Config ( )
inline

类成员变量说明

◆ begin_time

int64_t vlink::BagWriter::Config::begin_time {0}

Anchor (ms) used by time-based splits.

◆ cache_size

int64_t vlink::BagWriter::Config::cache_size {1024LL * 1024LL * 4}

VDB commit chunk / MCAP chunk size in bytes.

◆ compress

CompressType vlink::BagWriter::Config::compress {CompressType::kCompressNone}

Compression codec selector.

◆ compress_level

int64_t vlink::BagWriter::Config::compress_level {3}

Codec-specific compression level.

◆ compress_start_size

int64_t vlink::BagWriter::Config::compress_start_size {128}

Minimum payload size eligible for compression.

◆ enable_limit

bool vlink::BagWriter::Config::enable_limit {false}

When true, evict oldest rows at the row/byte limit.

◆ ignore_compress_urls

std::unordered_set<std::string> vlink::BagWriter::Config::ignore_compress_urls

URLs whose payloads must never be compressed.

◆ max_bytes_size

int64_t vlink::BagWriter::Config::max_bytes_size {1024LL * 1024LL * 1024LL * 512LL}

SQLite byte cap; either evicts or fails new writes.

◆ max_memory_size

int64_t vlink::BagWriter::Config::max_memory_size {1024LL * 1024LL * 1024LL * 2LL}

Maximum in-memory cache size in bytes.

◆ max_row_count

int64_t vlink::BagWriter::Config::max_row_count {5'000'000'000LL}

SQLite row cap; either evicts or fails new writes.

◆ max_task_depth

int64_t vlink::BagWriter::Config::max_task_depth {20000}

Maximum pending writes in the loop queue.

◆ optimize_on_exit

bool vlink::BagWriter::Config::optimize_on_exit {false}

Run VACUUM/OPTIMIZE while closing the file.

◆ split_by_size

int64_t vlink::BagWriter::Config::split_by_size {1024LL * 1024LL * 1024LL * 1LL}

Split threshold in bytes (0 disables).

◆ split_by_time

int64_t vlink::BagWriter::Config::split_by_time {0}

Split interval in milliseconds (0 disables).

◆ split_name_by_time

bool vlink::BagWriter::Config::split_name_by_time {false}

Append a timestamp suffix to split filenames.

◆ start_timestamp

int64_t vlink::BagWriter::Config::start_timestamp {0}

Override for the wall-clock start timestamp (ms).

◆ sync_mode

bool vlink::BagWriter::Config::sync_mode {false}

Disable periodic cache-flush timer for VDB writes.

◆ tag_name

std::string vlink::BagWriter::Config::tag_name

Optional tag stored in the bag header.

◆ wal_mode

bool vlink::BagWriter::Config::wal_mode {false}

Enable SQLite WAL for crash resilience.


该结构体的文档由以下文件生成: