Skip to main content

Module bulk

Module bulk 

Source
Expand description

Memtable implementation for bulk load

Modulesยง

chunk_reader ๐Ÿ”’
ChunkReader implementation for in-memory parquet bytes.
context
Context for iterating bulk memtable.
part
Bulk part encoder/decoder.
part_reader
row_group_reader ๐Ÿ”’

Structsยง

BulkMemtable
Memtable that ingests and scans parts directly.
BulkMemtableBuilder
Builder to build a BulkMemtable.
BulkMemtableConfig
Configuration for bulk memtable.
BulkPartWrapper ๐Ÿ”’
BulkParts ๐Ÿ”’
All parts in a bulk memtable.
BulkRangeIterBuilder
Iterator builder for bulk range
CollectedParts ๐Ÿ”’
Result of collecting parts to merge
CompactDispatcher
Scheduler to run compact tasks in background.
EncodedBulkRangeIterBuilder ๐Ÿ”’
Iterator builder for encoded bulk range
MemCompactTask ๐Ÿ”’
A memtable compact task to run in background.
MemtableCompactor ๐Ÿ”’
MergingFlagsGuard ๐Ÿ”’
RAII guard for managing merging flags. Automatically resets merging flags when dropped if the merge operation wasnโ€™t successful.
MultiBulkRangeIterBuilder ๐Ÿ”’
Iterator builder for multi bulk range

Enumsยง

MergedPart ๐Ÿ”’
Result of merging parts - either a MultiBulkPart or an EncodedBulkPart
PartToMerge ๐Ÿ”’
Enum to wrap different types of parts for unified merging.

Constantsยง

DEFAULT_ENCODE_BYTES_THRESHOLD ๐Ÿ”’
Default bytes threshold for encoding.
DEFAULT_MAX_MERGE_GROUPS ๐Ÿ”’
Default maximum number of groups for parallel merging.
DEFAULT_MERGE_THRESHOLD ๐Ÿ”’
Default merge threshold for triggering compaction.
ENCODE_BYTES_THRESHOLD_DIVISOR ๐Ÿ”’
Divisor to derive the encode bytes threshold from the global write buffer size.
MAX_ENCODE_BYTES_THRESHOLD ๐Ÿ”’
Maximum bytes threshold for encoding when adapting to the write buffer size.

Staticsยง

ENCODE_BYTES_THRESHOLD_OVERRIDE ๐Ÿ”’
Optional bytes threshold override from GREPTIME_BULK_ENCODE_BYTES_THRESHOLD.
ENCODE_ROW_THRESHOLD ๐Ÿ”’
Row threshold for encoding parts. Configurable via GREPTIME_BULK_ENCODE_ROW_THRESHOLD. When estimated rows exceed this threshold, parts are encoded as EncodedBulkPart.
MAX_MERGE_GROUPS ๐Ÿ”’
Maximum merge groups. Configurable via GREPTIME_BULK_MAX_MERGE_GROUPS.
MERGE_THRESHOLD ๐Ÿ”’
Threshold for triggering merge of parts. Configurable via GREPTIME_BULK_MERGE_THRESHOLD.

Functionsยง

adaptive_encode_bytes_threshold ๐Ÿ”’
Computes the encode bytes threshold adapted to the global write buffer size: max(64 MiB, min(global_write_buffer_size / 32, 512 MiB)).
default_encode_bytes_threshold ๐Ÿ”’
Returns the default bytes threshold for encoding parts.
env_usize ๐Ÿ”’
Reads an environment variable as usize, returning default if not set or invalid.