Module bulk

Module bulk 

Source
Expand description

Memtable implementation for bulk load

Modulesยง

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.

Staticsยง

ENCODE_BYTES_THRESHOLD ๐Ÿ”’
Bytes threshold for encoding parts. Configurable via GREPTIME_BULK_ENCODE_BYTES_THRESHOLD. When estimated bytes exceed this threshold, parts are encoded as EncodedBulkPart.
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ยง

env_usize ๐Ÿ”’
Reads an environment variable as usize, returning default if not set or invalid.