Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LayerZero-Labs/qmdb
/ functions
Functions
1,374 in github.com/LayerZero-Labs/qmdb
⨍
Functions
1,374
◇
Types & classes
185
↓ 1 callers
Method
write_kv
update an existent entry 'old': change its value to 'value'
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:312
Method
_init_dir
Internal directory initialization. # Arguments `dir` - Base directory path `file_segment_size` - Size of file segments `with_twig_file` - Whether to
crates/qmdb/src/lib.rs:661
Method
_new
Internal constructor with detailed parameters. # Arguments `task_hub` - Task hub for managing concurrent operations `dir` - Base directory path `wrbu
crates/qmdb/src/lib.rs:307
Method
_new
(dir: String, cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/mod.rs:136
Method
_start_compacting
(indexer: Arc<Self>, start: usize, end: usize)
crates/qmdb/src/indexer/memidx.rs:575
Method
add_kv
(&mut self, k: u64, v: i64)
crates/qmdb/src/indexer/memidx.rs:259
Method
add_kv
(&self, _key: &[u8], _position: i64, _serial_number: u64)
crates/qmdb-common/src/mutator/noop.rs:12
Method
add_shard
Adds a shard to the JobManager. # Arguments `update_buffer` - Buffer containing recent updates for the shard `entry_file` - File containing persisted
crates/qmdb/src/prefetcher/uniprefetcher.rs:57
Method
add_task_to_updater
Adds a task to the updater component. # Arguments `task_id` - ID of the task to add
crates/qmdb/src/lib.rs:812
Method
advance_to_round1
Advance to Round 1 after Round 0 completes. Call this after streaming Round 0 to properly initialize state for Round 1.
bench/src/speed/test_gen.rs:268
Method
alignment
()
crates/hpfile/src/aligned_buf.rs:133
Method
alloc_buffer
Allocates a NEW aligned buffer (not from pool). # Arguments `size` - Size of the buffer in bytes # Note For high-frequency reads, prefer `get_buffer
crates/qmdb/src/entryfile/uring_reader.rs:539
Method
as_full_mut_slice
(&mut self)
crates/hpfile/src/aligned_buf.rs:171
Method
as_full_slice
(&self)
crates/hpfile/src/aligned_buf.rs:165
Method
boxed_key
(key: &[u8])
crates/qmdb/src/seqads.rs:301
Method
build
Builds the final EntryMutator instance. # Returns A configured EntryMutator ready for use
crates/qmdb-common/src/mutator/entrymutator.rs:428
Method
build_read_entry
Build io_uring read request - Uses ReadFixed to leverage pre-registered buffers - If fixed_slot available, use Fixed fd; otherwise use regular fd # A
crates/qmdb/src/prefetcher/dioprefetcher.rs:819
Function
calc_max_level_from_sn
Calculates the maximum level in the Merkle tree from a serial number. This function converts a serial number into a twig ID and then computes the tre
crates/qmdb-common/src/def.rs:313
Method
capacity
(&self)
crates/hpfile/src/aligned_buf.rs:121
Method
capacity
(&self)
crates/qmdb/src/utils/bitmap.rs:83
Method
change_kv
(&mut self, k: u64, v_old: i64, v_new: i64)
crates/qmdb/src/indexer/memidx.rs:293
Method
change_kv
(&mut self, idx: u64, k_in: u64, v_old: i64, v_new: i64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:74
Method
change_kv
( &self, _key: &[u8], _old_position: i64, _new_position: i64, _old_ser
crates/qmdb-common/src/mutator/noop.rs:16
Method
check_entry
Checks if an entry matches its key. # Arguments `key_hash` - Hash of the key `key` - Original key `entry_bz` - Entry bytes to check # Returns true i
crates/qmdb/src/lib.rs:717
Method
check_key_existence
(&self, key: &[u8])
crates/qmdb/src/seqads.rs:239
Method
clear
Clears all cached data from the shard. This operation moves all buffers to the free list and retains 7/8 of them for future use to balance memory usa
crates/qmdb/src/utils/bytescache.rs:114
Method
clear
(&mut self)
crates/qmdb/src/utils/writebatch.rs:31
Method
clear_bit
(bits: &mut [u64], offset: u32)
crates/qmdb-common/src/merkletree/activebitsutil.rs:21
Method
clear_pool
Clears the buffer pool, freeing all cached buffers.
crates/qmdb/src/entryfile/uring_reader.rs:574
Method
close
Close the opened small files. # Safety Note (io_uring) The caller must ensure all in-flight io_uring operations have completed before calling this.
crates/hpfile/src/lib.rs:394
Method
close
Close all opened small files
crates/hpfile/src/readonly.rs:136
Function
compare_new_entry
Public wrapper for _compare_new_entry.
crates/qmdb/src/updater.rs:1045
Function
compare_nodes
( nodes_a: &[Vec<HashMap<NodePos, [u8; 32]>>], nodes_b: &[Vec<HashMap<NodePos, [u8; 32]>>], )
crates/qmdb/src/merkletree/helpers.rs:241
Function
compare_old_entry
Public wrapper for _compare_old_entry.
crates/qmdb/src/updater.rs:1024
Function
compare_prev_changed
Public wrapper for _compare_prev_changed.
crates/qmdb/src/updater.rs:1038
Function
compare_prev_entry
Public wrapper for _compare_prev_entry.
crates/qmdb/src/updater.rs:1031
Function
compare_tree_nodes
(tree_a: &Tree, tree_b: &Tree)
crates/qmdb/src/merkletree/helpers.rs:131
Function
compare_tree_twigs
(tree_a: &Tree, tree_b: &mut Tree)
crates/qmdb/src/merkletree/helpers.rs:167
Function
compare_twigs_map
(twig_map_a: &HashMap<i64, Twig>, twig_map_b: &HashMap<i64, Twig>)
crates/qmdb/src/merkletree/helpers.rs:278
Method
config
Get config
bench/src/speed/streaming_gen.rs:482
Function
consume_chunks
Consume chunks from a receiver and invoke a callback for each `FileChunk` by reference. This function blocks until the channel is closed. # Paramete
crates/hpfile/src/watcher.rs:259
Method
contains
(&self, cache_key: &KT, idx: usize)
crates/qmdb/src/utils/bytescache.rs:295
Method
contains
(&self, shard_id: usize, file_pos: i64)
crates/qmdb/src/entryfile/entrycache.rs:63
Function
create_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/rocksdb.rs:123
Function
create_kv
(_: usize, height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/db_backend.rs:33
Method
create_kv
Create a new key-value entry
crates/qmdb-common/src/mutator/entrymutator.rs:104
Method
current_pop_block_idx
Get current population block index
bench/src/speed/streaming_gen.rs:492
Method
debug_get_adjacent
(&self, k80: &[u8], idx: u64, k_in: u64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:177
Method
debug_get_kv
(&self, idx: u64, k_in: u64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:146
Function
decode_le_i64
(v: &[u8])
crates/qmdb-common/src/utils/mod.rs:151
Function
decode_le_u64
(v: &[u8])
crates/qmdb-common/src/utils/mod.rs:155
Method
decrypt
Decrypts a metadata buffer using AES-GCM. # Arguments `cipher` - Optional AES-GCM cipher `bz` - Buffer to decrypt in-place # Security - Uses authent
crates/qmdb/src/metadb.rs:474
Method
default
()
crates/hpfile/src/lib.rs:785
Method
default
()
crates/hpfile/src/aligned_buf.rs:45
Method
default
Creates a new Config instance with default values. # Default Values - `wrbuf_size`: 8MB - `file_segment_size`: 1GB - `with_twig_file`: false - `aes_k
crates/qmdb/src/config.rs:175
Method
default
Creates a new TaskJob with default settings. Initializes: - Empty read counts for each shard - No cache - Minimum task ID - Empty sub-jobs list
crates/qmdb/src/prefetcher/dioprefetcher.rs:398
Method
default
Creates a new JobManager with default settings.
crates/qmdb/src/prefetcher/uniprefetcher.rs:32
Method
default
()
crates/qmdb/src/utils/bytescache.rs:93
Method
default
()
crates/qmdb/src/utils/shortlist.rs:41
Method
default
()
crates/qmdb/src/entryfile/entrycache.rs:13
Method
default
()
crates/qmdb/src/indexer/hybrid/ref_unit.rs:37
Method
default
()
crates/qmdb/src/indexer/hybrid/overlay.rs:14
Method
default
()
crates/qmdb/src/merkletree/singleproof.rs:151
Method
default
()
crates/qmdb/src/tasks/tasksmanager.rs:13
Method
default
()
crates/qmdb/src/tasks/bptaskhub.rs:21
Method
default
()
crates/qmdb-common/src/utils/changeset.rs:214
Method
default
()
crates/qmdb-common/src/indexer/utils/poslist.rs:10
Method
default
()
crates/qmdb-common/src/merkletree/activebits.rs:12
Method
default
()
crates/qmdb-common/src/merkletree/twig.rs:100
Method
default
()
crates/qmdb-common/tests/reference_impl.rs:276
Method
default
()
bench/src/speed/metrics.rs:246
Method
default
()
bench/src/speed/streaming_gen.rs:111
Method
default
()
bench/src/speed/results.rs:46
Method
delete
(self, k: &[u8], v: &[u8])
crates/qmdb-common/src/task/single_cs_task.rs:48
Function
delete_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/rocksdb.rs:133
Function
delete_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/mdbx.rs:43
Function
delete_kv
(tid: usize, height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/qmdb.rs:48
Function
delete_kv
(height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/db_backend.rs:63
Method
delete_kv
Delete an existing key-value entry
crates/qmdb-common/src/mutator/entrymutator.rs:232
Method
deref
(&self)
crates/hpfile/src/aligned_buf.rs:234
Method
deref
(&self)
crates/qmdb/src/entryfile/uring_reader.rs:151
Method
deref_mut
(&mut self)
crates/hpfile/src/aligned_buf.rs:241
Function
deserialize_arc_vec
(deserializer: D)
crates/qmdb/src/tasks/helpers.rs:21
Method
drop
(&mut self)
crates/hpfile/src/watcher.rs:233
Method
drop
(&mut self)
crates/hpfile/src/file_slots.rs:477
Method
drop
(&mut self)
crates/qmdb/src/entryfile/uring_reader.rs:158
Method
drop
(&mut self)
crates/qmdb/src/indexer/hybrid/tempfile.rs:50
Method
dump_compare
(&self, deactived_sn_list: &[u64], target: &[u8])
crates/qmdb-common/src/entryfile/entry.rs:190
Method
empty
Create an empty `HPFile` that has no function and can only be used as placeholder.
crates/hpfile/src/lib.rs:126
Method
empty
()
crates/qmdb/src/merkletree/tree.rs:170
Method
empty
Creates an empty twig file for testing # Returns A TwigFile instance with an empty HPFile
crates/qmdb/src/merkletree/twigfile.rs:100
Function
encode_le_i64
(n: i64)
crates/qmdb-common/src/utils/mod.rs:163
Function
encode_le_u64
(n: u64)
crates/qmdb-common/src/utils/mod.rs:159
Function
entry_file
()
crates/qmdb/src/entryfile/entryfile.rs:547
Method
entry_or_insert_with
(&mut self, key: K, f: F)
crates/qmdb-common/src/utils/simplemap.rs:239
Method
eq
(&self, other: &SimpleMap<K, V, H2>)
crates/qmdb-common/src/utils/simplemap.rs:300
Method
eq_without_old_value
(&self, other: &Self)
crates/qmdb-common/src/utils/changeset.rs:223
Method
erase_kv
(&mut self, k: u64, v: i64)
crates/qmdb/src/indexer/memidx.rs:273
Method
erase_kv
(&self, _key: &[u8], _position: i64, _serial_number: u64)
crates/qmdb-common/src/mutator/noop.rs:27
Method
extend_zeroed
(&mut self, additional: usize)
crates/hpfile/src/aligned_buf.rs:225
← previous
next →
801–900 of 1,374, ranked by callers