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
Function
fake_indexer
(file: &Arc<File>, page_count: u64, task_list: &[RwLock<Option<SimpleTask>>])
bench/src/speed/test_helper.rs:12
Method
fetch_prev_entries
Fetches entries from previous blocks for a task. # Arguments `task_id` - ID of the task to fetch entries for
crates/qmdb/src/lib.rs:825
Method
fetch_prev_entries
Fetches entries from previous tasks. # Arguments `task_id` - ID of the task to process
crates/qmdb/src/prefetcher/dioprefetcher.rs:325
Method
fetch_prev_entries
Fetches entries from previous tasks into the provided cache. This variant is used when the main pipeline bypasses the asynchronous prefetcher (e.g.,
crates/qmdb/src/prefetcher/uniprefetcher.rs:247
Method
fill_bytes
(&mut self, bz: &mut [u8])
crates/qmdb/src/test_helper/randsrc.rs:69
Method
find_first_active
(bits: &[u64])
crates/qmdb-common/src/merkletree/activebitsutil.rs:44
Function
flush
(_: usize)
bench/src/speed/db_backend.rs:93
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/hpfile/src/aligned_buf.rs:247
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/hpfile/src/file_slots.rs:492
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/qmdb/src/merkletree/tree.rs:116
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/utils/changeset.rs:169
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/utils/simplemap.rs:40
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/entryfile/entry.rs:70
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/qmdb-common/src/merkletree/multiproof.rs:146
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
bench/src/speed/results.rs:28
Method
for_each
for_each is only used by prefetcher for warmup
crates/qmdb/src/indexer/hybrid/mod.rs:325
Method
from
((updater, ebw): (&'a mut Updater, &'a mut Guard))
crates/qmdb/src/updater.rs:1081
Method
from
Creates a new `ShortList` containing a single element. # Arguments `elem` - The element to initialize the list with.
crates/qmdb/src/utils/shortlist.rs:62
Method
from
(data: Vec<Vec<u8>>)
crates/qmdb/src/entryfile/ro_entry_cache.rs:38
Method
from_bz
Creates an `Entry` from a serialized `EntryBz`. # Arguments `e` - The serialized entry to deserialize. # Returns An `Entry` struct with references
crates/qmdb-common/src/entryfile/entry.rs:93
Method
from_diff
Creates a new `DiffMap` from pre-computed diff data. # Arguments `diff` - A slice of `(index, value)` pairs sorted by index. Each pair represents a
crates/qmdb-common/src/merkletree/diffmap.rs:69
Method
from_dir
Creates a new Config instance with default values except for the directory. # Arguments `dir` - Base directory for database files # Returns A new Co
crates/qmdb/src/config.rs:250
Method
from_dir_and_compact_opt
Creates a new Config instance with custom compaction settings. # Arguments `dir` - Base directory for database files `compact_thres` - Compaction thr
crates/qmdb/src/config.rs:268
Function
full_root_qmdb
(leaves: &[[u8; 32]])
crates/qmdb/src/merkletree/multiproof.rs:169
Method
gen_epochs
(&mut self, epoch_count: usize)
crates/qmdb/src/test_helper/testgen.rs:209
Method
generate_diff
Generates a diff representation from a full array of values. This method analyzes the input array and creates a compressed diff format by identifying
crates/qmdb-common/src/merkletree/diffmap.rs:198
Function
generate_read_key
(randsrc: &mut RandSrc, max_num: u64)
bench/src/bin/speed.rs:782
Function
get_ads
(tid: usize)
bench/src/speed/qmdb.rs:60
Function
get_all_adjacent_values
Gets all adjacent values for a key. # Arguments `bt` - Indexer instance `k80` - 80-bit key to look up # Returns Vector of file positions for adjacen
crates/qmdb/src/indexer/mod.rs:162
Function
get_all_values
Gets all values associated with a key. # Arguments `bt` - Indexer instance `k80` - 80-bit key to look up # Returns Vector of file positions for the
crates/qmdb/src/indexer/mod.rs:149
Method
get_bit
(bits: &[u64], offset: u32)
crates/qmdb-common/src/merkletree/activebitsutil.rs:34
Method
get_bool
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:102
Method
get_buf
Gets a reference to a specific buffer. # Arguments `id` - ID of the buffer `offset` - Offset within the buffer # Returns A slice of the buffer start
crates/qmdb/src/prefetcher/dioprefetcher.rs:1308
Method
get_bytes_mut
(&self, file_pos: i64)
crates/qmdb/src/entryfile/entryfile.rs:306
Method
get_change_set
(op_list: &[Op])
crates/qmdb/src/test_helper/testgen.rs:126
Method
get_change_sets
(&self)
crates/qmdb-common/src/task/single_cs_task.rs:21
Method
get_code
get code from a H2C record
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:90
Method
get_entries_list
(&self, old_size_list: &Vec<i64>)
crates/qmdb/src/lib.rs:1251
Method
get_entry_len
Calculates the total entry length from the header bytes. # Arguments `len_bytes` - The first few bytes of the entry header. # Returns The total se
crates/qmdb-common/src/entryfile/entry.rs:429
Method
get_extra_data
Gets the extra data stored at the current height. # Returns The extra data string stored at the current block height # Performance - Direct access -
crates/qmdb/src/metadb.rs:501
Method
get_file_ids
(dir_name: &str, segment_size: i64)
crates/hpfile/src/lib.rs:142
Method
get_file_ids
(dir_name: &str, segment_size: i64)
crates/hpfile/src/readonly.rs:32
Method
get_file_ref
Returns the corresponding file and in-file position given a logical offset. When we use io_uring to read data from HPFile, the underlying segment file
crates/hpfile/src/lib.rs:415
Method
get_float32
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:143
Method
get_float64
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:147
Method
get_indexer
Gets a reference to the indexer. # Returns Reference to the indexer
crates/qmdb/src/lib.rs:1097
Method
get_info
(&self)
crates/qmdb/src/metadb.rs:1033
Method
get_int16
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:131
Method
get_int32
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:135
Method
get_int64
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:139
Method
get_int8
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:127
Method
get_key_len
Extracts the key length from the entry header bytes. # Arguments `len_bytes` - The first few bytes of the entry header. # Returns The length of th
crates/qmdb-common/src/entryfile/entry.rs:400
Method
get_kv_len
Extracts both key and value lengths from the entry header bytes. # Arguments `len_bytes` - The first few bytes of the entry header. # Returns A tu
crates/qmdb-common/src/entryfile/entry.rs:413
Method
get_leaf_range
for the ignored middle layer, we must calculate the node's value from leaves in a range Calculates the range of leaf nodes needed to compute a middle-
crates/qmdb/src/merkletree/twigfile.rs:190
Method
get_metadb
(&self)
crates/qmdb/src/seqads.rs:191
Method
get_name
(&self)
crates/qmdb/src/indexer/hybrid/file_writer.rs:31
Method
get_name
(&self)
crates/qmdb/src/indexer/hybrid/tempfile.rs:30
Method
get_num_active
(&self, shard_id: usize)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:199
Method
get_or_insert_with_arc
Get an existing value, or insert a new one if not present. Returns `Arc<T>`. Use this when you need to hold the value (e.g., cache it in a struct). F
crates/hpfile/src/file_slots.rs:446
Method
get_proof
Gets a proof for a specific entry. # Arguments `shard_id` - ID of the shard containing the entry `sn` - Serial number of the entry # Returns The com
crates/qmdb/src/lib.rs:384
Method
get_rand_kv
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:308
Method
get_read_e
Gets a read entry for io_uring (backward compatible version). # Arguments `file` - File to read from `offset` - Offset within the file `buf` - Buffer
crates/qmdb/src/prefetcher/dioprefetcher.rs:791
Method
get_root_hash_of_height
Gets the root hash for a specific block height. # Arguments `height` - Block height to get the root hash for # Returns The 32-byte root hash
crates/qmdb/src/lib.rs:1441
Method
get_string
(&mut self, n: usize)
crates/qmdb/src/test_helper/randsrc.rs:91
Method
get_sub_dirs
Gets the subdirectories used by the database. # Arguments `dir` - Base directory path # Returns A tuple containing paths for (data, meta, indexer) d
crates/qmdb/src/lib.rs:258
Method
get_taskman
(&self)
crates/qmdb/src/test_helper/testgen.rs:115
Method
has
Checks if the set contains the integer `value`. # Arguments `value` - The integer to check for presence in the set. # Returns `true` if the intege
crates/qmdb/src/utils/intset.rs:119
Method
hash
(key: &u64)
crates/qmdb-common/src/utils/short_key.rs:41
Method
hover_ops_per_block
Get hover ops per block
bench/src/speed/streaming_gen.rs:497
Method
incr_page_num
(&self)
crates/qmdb/src/indexer/hybrid/index_cache.rs:43
Method
index
(&self)
crates/qmdb/src/indexer/kvlist.rs:67
Method
index_tree
Indexes a tree's entries. # Arguments `tree` - Tree to index `oldest_active_sn` - Oldest active serial number `ef_prune_to` - Height to prune entries
crates/qmdb/src/lib.rs:625
Function
init
(rocksdb_dir: &str)
bench/src/speed/rocksdb.rs:115
Function
init
(qmdb_dir: &str, table_id: usize)
bench/src/speed/qmdb.rs:15
Function
init
(db_dir: &str, _: usize)
bench/src/speed/db_backend.rs:15
Method
init_dir
Initializes the database directory structure. # Arguments `config` - Database configuration
crates/qmdb/src/lib.rs:641
Method
initialize_dir
Initializes a new metadata database in the specified directory.
crates/qmdb/src/metadb.rs:353
Method
initialize_from_entry_value
(&mut self)
crates/qmdb-common/src/entryfile/readbuf.rs:70
Method
insert_if_missing
Inserts bytes into the cache only if the key doesn't already exist. # Arguments `cache_key` - The key to check and potentially store `idx` - The sha
crates/qmdb/src/utils/bytescache.rs:266
Method
intern_job
Helper: intern a job Arc into the local table, returning slot index.
crates/qmdb/src/prefetcher/dioprefetcher.rs:906
Method
is_active_entry
We check if an entry is active by comparing its position and serial number against the indexer's records. If they match, this entry is the latest vers
crates/qmdb/src/updater.rs:794
Method
is_empty
(&self)
crates/hpfile/src/aligned_buf.rs:115
Method
is_empty
(&self)
crates/qmdb/src/utils/writebatch.rs:23
Method
is_empty
(&self)
crates/qmdb-common/src/entryfile/readbuf.rs:15
Method
is_empty
(&self)
crates/qmdb-common/src/indexer/utils/poslist.rs:76
Method
is_hover
(&self)
bench/src/speed/streaming_gen.rs:38
Method
is_set
(&self, index: usize)
crates/qmdb/src/utils/bitmap.rs:73
Method
is_tracked_and_exists
Returns whether a key is both *tracked by the bitmap model* and currently considered to exist. Semantics: - Stable range [0, entry_count_wo_del): alw
bench/src/speed/correctness.rs:161
Method
key_exists
(&self, k80: &[u8], file_pos: i64, _: u64)
crates/qmdb/src/indexer/memidx.rs:659
Method
key_exists
(&self, k80: &[u8], file_pos: i64, sn: u64)
crates/qmdb/src/indexer/hybrid/mod.rs:347
Method
key_hash
Computes the hash of this entry's key. For sentry entries (entries with empty values), returns a special hash using the first two bytes of the key. O
crates/qmdb-common/src/entryfile/entry.rs:266
Method
kv
(k: T, v: T)
crates/qmdb-common/src/entryfile/helpers.rs:15
Method
len
(&self)
crates/qmdb/src/utils/writebatch.rs:27
Method
len
(&self, shard_id: usize)
crates/qmdb/src/indexer/hybrid/mod.rs:246
Function
level8nth_short_key
(key: &u64)
crates/qmdb-common/src/utils/short_key.rs:189
Method
load_files_into_slots
( dir_name: &str, segment_size: i64, id_list: Vec<i64>, largest_id: i64,
crates/hpfile/src/lib.rs:181
Method
load_from_dir
Loads the metadata database from the specified directory.
crates/qmdb/src/metadb.rs:344
Function
main
()
crates/qmdb/examples/v4_memidx.rs:14
Function
main
()
crates/qmdb/examples/v3_indexer.rs:35
Function
main
()
crates/qmdb/examples/v2_demo.rs:16
← previous
next →
901–1,000 of 1,374, ranked by callers