MCPcopy Create free account

hub / github.com/LayerZero-Labs/qmdb / functions

Functions1,374 in github.com/LayerZero-Labs/qmdb

↓ 1 callersMethodwrite_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
Methodadd_kv
(&mut self, k: u64, v: i64)
crates/qmdb/src/indexer/memidx.rs:259
Methodadd_kv
(&self, _key: &[u8], _position: i64, _serial_number: u64)
crates/qmdb-common/src/mutator/noop.rs:12
Methodadd_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
Methodadd_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
Methodadvance_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
Methodalignment
()
crates/hpfile/src/aligned_buf.rs:133
Methodalloc_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
Methodas_full_mut_slice
(&mut self)
crates/hpfile/src/aligned_buf.rs:171
Methodas_full_slice
(&self)
crates/hpfile/src/aligned_buf.rs:165
Methodboxed_key
(key: &[u8])
crates/qmdb/src/seqads.rs:301
Methodbuild
Builds the final EntryMutator instance. # Returns A configured EntryMutator ready for use
crates/qmdb-common/src/mutator/entrymutator.rs:428
Methodbuild_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
Functioncalc_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
Methodcapacity
(&self)
crates/hpfile/src/aligned_buf.rs:121
Methodcapacity
(&self)
crates/qmdb/src/utils/bitmap.rs:83
Methodchange_kv
(&mut self, k: u64, v_old: i64, v_new: i64)
crates/qmdb/src/indexer/memidx.rs:293
Methodchange_kv
(&mut self, idx: u64, k_in: u64, v_old: i64, v_new: i64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:74
Methodchange_kv
( &self, _key: &[u8], _old_position: i64, _new_position: i64, _old_ser
crates/qmdb-common/src/mutator/noop.rs:16
Methodcheck_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
Methodcheck_key_existence
(&self, key: &[u8])
crates/qmdb/src/seqads.rs:239
Methodclear
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
Methodclear
(&mut self)
crates/qmdb/src/utils/writebatch.rs:31
Methodclear_bit
(bits: &mut [u64], offset: u32)
crates/qmdb-common/src/merkletree/activebitsutil.rs:21
Methodclear_pool
Clears the buffer pool, freeing all cached buffers.
crates/qmdb/src/entryfile/uring_reader.rs:574
Methodclose
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
Methodclose
Close all opened small files
crates/hpfile/src/readonly.rs:136
Functioncompare_new_entry
Public wrapper for _compare_new_entry.
crates/qmdb/src/updater.rs:1045
Functioncompare_nodes
( nodes_a: &[Vec<HashMap<NodePos, [u8; 32]>>], nodes_b: &[Vec<HashMap<NodePos, [u8; 32]>>], )
crates/qmdb/src/merkletree/helpers.rs:241
Functioncompare_old_entry
Public wrapper for _compare_old_entry.
crates/qmdb/src/updater.rs:1024
Functioncompare_prev_changed
Public wrapper for _compare_prev_changed.
crates/qmdb/src/updater.rs:1038
Functioncompare_prev_entry
Public wrapper for _compare_prev_entry.
crates/qmdb/src/updater.rs:1031
Functioncompare_tree_nodes
(tree_a: &Tree, tree_b: &Tree)
crates/qmdb/src/merkletree/helpers.rs:131
Functioncompare_tree_twigs
(tree_a: &Tree, tree_b: &mut Tree)
crates/qmdb/src/merkletree/helpers.rs:167
Functioncompare_twigs_map
(twig_map_a: &HashMap<i64, Twig>, twig_map_b: &HashMap<i64, Twig>)
crates/qmdb/src/merkletree/helpers.rs:278
Methodconfig
Get config
bench/src/speed/streaming_gen.rs:482
Functionconsume_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
Methodcontains
(&self, cache_key: &KT, idx: usize)
crates/qmdb/src/utils/bytescache.rs:295
Methodcontains
(&self, shard_id: usize, file_pos: i64)
crates/qmdb/src/entryfile/entrycache.rs:63
Functioncreate_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/rocksdb.rs:123
Functioncreate_kv
(_: usize, height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/db_backend.rs:33
Methodcreate_kv
Create a new key-value entry
crates/qmdb-common/src/mutator/entrymutator.rs:104
Methodcurrent_pop_block_idx
Get current population block index
bench/src/speed/streaming_gen.rs:492
Methoddebug_get_adjacent
(&self, k80: &[u8], idx: u64, k_in: u64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:177
Methoddebug_get_kv
(&self, idx: u64, k_in: u64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:146
Functiondecode_le_i64
(v: &[u8])
crates/qmdb-common/src/utils/mod.rs:151
Functiondecode_le_u64
(v: &[u8])
crates/qmdb-common/src/utils/mod.rs:155
Methoddecrypt
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
Methoddefault
()
crates/hpfile/src/lib.rs:785
Methoddefault
()
crates/hpfile/src/aligned_buf.rs:45
Methoddefault
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
Methoddefault
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
Methoddefault
Creates a new JobManager with default settings.
crates/qmdb/src/prefetcher/uniprefetcher.rs:32
Methoddefault
()
crates/qmdb/src/utils/bytescache.rs:93
Methoddefault
()
crates/qmdb/src/utils/shortlist.rs:41
Methoddefault
()
crates/qmdb/src/entryfile/entrycache.rs:13
Methoddefault
()
crates/qmdb/src/indexer/hybrid/ref_unit.rs:37
Methoddefault
()
crates/qmdb/src/indexer/hybrid/overlay.rs:14
Methoddefault
()
crates/qmdb/src/merkletree/singleproof.rs:151
Methoddefault
()
crates/qmdb/src/tasks/tasksmanager.rs:13
Methoddefault
()
crates/qmdb/src/tasks/bptaskhub.rs:21
Methoddefault
()
crates/qmdb-common/src/utils/changeset.rs:214
Methoddefault
()
crates/qmdb-common/src/indexer/utils/poslist.rs:10
Methoddefault
()
crates/qmdb-common/src/merkletree/activebits.rs:12
Methoddefault
()
crates/qmdb-common/src/merkletree/twig.rs:100
Methoddefault
()
crates/qmdb-common/tests/reference_impl.rs:276
Methoddefault
()
bench/src/speed/metrics.rs:246
Methoddefault
()
bench/src/speed/streaming_gen.rs:111
Methoddefault
()
bench/src/speed/results.rs:46
Methoddelete
(self, k: &[u8], v: &[u8])
crates/qmdb-common/src/task/single_cs_task.rs:48
Functiondelete_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/rocksdb.rs:133
Functiondelete_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/mdbx.rs:43
Functiondelete_kv
(tid: usize, height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/qmdb.rs:48
Functiondelete_kv
(height: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/db_backend.rs:63
Methoddelete_kv
Delete an existing key-value entry
crates/qmdb-common/src/mutator/entrymutator.rs:232
Methodderef
(&self)
crates/hpfile/src/aligned_buf.rs:234
Methodderef
(&self)
crates/qmdb/src/entryfile/uring_reader.rs:151
Methodderef_mut
(&mut self)
crates/hpfile/src/aligned_buf.rs:241
Functiondeserialize_arc_vec
(deserializer: D)
crates/qmdb/src/tasks/helpers.rs:21
Methoddrop
(&mut self)
crates/hpfile/src/watcher.rs:233
Methoddrop
(&mut self)
crates/hpfile/src/file_slots.rs:477
Methoddrop
(&mut self)
crates/qmdb/src/entryfile/uring_reader.rs:158
Methoddrop
(&mut self)
crates/qmdb/src/indexer/hybrid/tempfile.rs:50
Methoddump_compare
(&self, deactived_sn_list: &[u64], target: &[u8])
crates/qmdb-common/src/entryfile/entry.rs:190
Methodempty
Create an empty `HPFile` that has no function and can only be used as placeholder.
crates/hpfile/src/lib.rs:126
Methodempty
()
crates/qmdb/src/merkletree/tree.rs:170
Methodempty
Creates an empty twig file for testing # Returns A TwigFile instance with an empty HPFile
crates/qmdb/src/merkletree/twigfile.rs:100
Functionencode_le_i64
(n: i64)
crates/qmdb-common/src/utils/mod.rs:163
Functionencode_le_u64
(n: u64)
crates/qmdb-common/src/utils/mod.rs:159
Functionentry_file
()
crates/qmdb/src/entryfile/entryfile.rs:547
Methodentry_or_insert_with
(&mut self, key: K, f: F)
crates/qmdb-common/src/utils/simplemap.rs:239
Methodeq
(&self, other: &SimpleMap<K, V, H2>)
crates/qmdb-common/src/utils/simplemap.rs:300
Methodeq_without_old_value
(&self, other: &Self)
crates/qmdb-common/src/utils/changeset.rs:223
Methoderase_kv
(&mut self, k: u64, v: i64)
crates/qmdb/src/indexer/memidx.rs:273
Methoderase_kv
(&self, _key: &[u8], _position: i64, _serial_number: u64)
crates/qmdb-common/src/mutator/noop.rs:27
Methodextend_zeroed
(&mut self, additional: usize)
crates/hpfile/src/aligned_buf.rs:225
← previousnext →801–900 of 1,374, ranked by callers