MCPcopy Create free account

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

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

Functionfake_indexer
(file: &Arc<File>, page_count: u64, task_list: &[RwLock<Option<SimpleTask>>])
bench/src/speed/test_helper.rs:12
Methodfetch_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
Methodfetch_prev_entries
Fetches entries from previous tasks. # Arguments `task_id` - ID of the task to process
crates/qmdb/src/prefetcher/dioprefetcher.rs:325
Methodfetch_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
Methodfill_bytes
(&mut self, bz: &mut [u8])
crates/qmdb/src/test_helper/randsrc.rs:69
Methodfind_first_active
(bits: &[u64])
crates/qmdb-common/src/merkletree/activebitsutil.rs:44
Functionflush
(_: usize)
bench/src/speed/db_backend.rs:93
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/hpfile/src/aligned_buf.rs:247
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crates/hpfile/src/file_slots.rs:492
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/qmdb/src/merkletree/tree.rs:116
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/utils/changeset.rs:169
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/utils/simplemap.rs:40
Methodfmt
(&self, f: &mut core::fmt::Formatter<'_>)
crates/qmdb-common/src/entryfile/entry.rs:70
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/qmdb-common/src/merkletree/multiproof.rs:146
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
bench/src/speed/results.rs:28
Methodfor_each
for_each is only used by prefetcher for warmup
crates/qmdb/src/indexer/hybrid/mod.rs:325
Methodfrom
((updater, ebw): (&'a mut Updater, &'a mut Guard))
crates/qmdb/src/updater.rs:1081
Methodfrom
Creates a new `ShortList` containing a single element. # Arguments `elem` - The element to initialize the list with.
crates/qmdb/src/utils/shortlist.rs:62
Methodfrom
(data: Vec<Vec<u8>>)
crates/qmdb/src/entryfile/ro_entry_cache.rs:38
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_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
Functionfull_root_qmdb
(leaves: &[[u8; 32]])
crates/qmdb/src/merkletree/multiproof.rs:169
Methodgen_epochs
(&mut self, epoch_count: usize)
crates/qmdb/src/test_helper/testgen.rs:209
Methodgenerate_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
Functiongenerate_read_key
(randsrc: &mut RandSrc, max_num: u64)
bench/src/bin/speed.rs:782
Functionget_ads
(tid: usize)
bench/src/speed/qmdb.rs:60
Functionget_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
Functionget_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
Methodget_bit
(bits: &[u64], offset: u32)
crates/qmdb-common/src/merkletree/activebitsutil.rs:34
Methodget_bool
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:102
Methodget_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
Methodget_bytes_mut
(&self, file_pos: i64)
crates/qmdb/src/entryfile/entryfile.rs:306
Methodget_change_set
(op_list: &[Op])
crates/qmdb/src/test_helper/testgen.rs:126
Methodget_change_sets
(&self)
crates/qmdb-common/src/task/single_cs_task.rs:21
Methodget_code
get code from a H2C record
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:90
Methodget_entries_list
(&self, old_size_list: &Vec<i64>)
crates/qmdb/src/lib.rs:1251
Methodget_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
Methodget_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
Methodget_file_ids
(dir_name: &str, segment_size: i64)
crates/hpfile/src/lib.rs:142
Methodget_file_ids
(dir_name: &str, segment_size: i64)
crates/hpfile/src/readonly.rs:32
Methodget_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
Methodget_float32
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:143
Methodget_float64
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:147
Methodget_indexer
Gets a reference to the indexer. # Returns Reference to the indexer
crates/qmdb/src/lib.rs:1097
Methodget_info
(&self)
crates/qmdb/src/metadb.rs:1033
Methodget_int16
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:131
Methodget_int32
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:135
Methodget_int64
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:139
Methodget_int8
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:127
Methodget_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
Methodget_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
Methodget_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
Methodget_metadb
(&self)
crates/qmdb/src/seqads.rs:191
Methodget_name
(&self)
crates/qmdb/src/indexer/hybrid/file_writer.rs:31
Methodget_name
(&self)
crates/qmdb/src/indexer/hybrid/tempfile.rs:30
Methodget_num_active
(&self, shard_id: usize)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:199
Methodget_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
Methodget_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
Methodget_rand_kv
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:308
Methodget_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
Methodget_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
Methodget_string
(&mut self, n: usize)
crates/qmdb/src/test_helper/randsrc.rs:91
Methodget_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
Methodget_taskman
(&self)
crates/qmdb/src/test_helper/testgen.rs:115
Methodhas
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
Methodhash
(key: &u64)
crates/qmdb-common/src/utils/short_key.rs:41
Methodhover_ops_per_block
Get hover ops per block
bench/src/speed/streaming_gen.rs:497
Methodincr_page_num
(&self)
crates/qmdb/src/indexer/hybrid/index_cache.rs:43
Methodindex
(&self)
crates/qmdb/src/indexer/kvlist.rs:67
Methodindex_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
Functioninit
(rocksdb_dir: &str)
bench/src/speed/rocksdb.rs:115
Functioninit
(qmdb_dir: &str, table_id: usize)
bench/src/speed/qmdb.rs:15
Functioninit
(db_dir: &str, _: usize)
bench/src/speed/db_backend.rs:15
Methodinit_dir
Initializes the database directory structure. # Arguments `config` - Database configuration
crates/qmdb/src/lib.rs:641
Methodinitialize_dir
Initializes a new metadata database in the specified directory.
crates/qmdb/src/metadb.rs:353
Methodinitialize_from_entry_value
(&mut self)
crates/qmdb-common/src/entryfile/readbuf.rs:70
Methodinsert_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
Methodintern_job
Helper: intern a job Arc into the local table, returning slot index.
crates/qmdb/src/prefetcher/dioprefetcher.rs:906
Methodis_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
Methodis_empty
(&self)
crates/hpfile/src/aligned_buf.rs:115
Methodis_empty
(&self)
crates/qmdb/src/utils/writebatch.rs:23
Methodis_empty
(&self)
crates/qmdb-common/src/entryfile/readbuf.rs:15
Methodis_empty
(&self)
crates/qmdb-common/src/indexer/utils/poslist.rs:76
Methodis_hover
(&self)
bench/src/speed/streaming_gen.rs:38
Methodis_set
(&self, index: usize)
crates/qmdb/src/utils/bitmap.rs:73
Methodis_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
Methodkey_exists
(&self, k80: &[u8], file_pos: i64, _: u64)
crates/qmdb/src/indexer/memidx.rs:659
Methodkey_exists
(&self, k80: &[u8], file_pos: i64, sn: u64)
crates/qmdb/src/indexer/hybrid/mod.rs:347
Methodkey_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
Methodkv
(k: T, v: T)
crates/qmdb-common/src/entryfile/helpers.rs:15
Methodlen
(&self)
crates/qmdb/src/utils/writebatch.rs:27
Methodlen
(&self, shard_id: usize)
crates/qmdb/src/indexer/hybrid/mod.rs:246
Functionlevel8nth_short_key
(key: &u64)
crates/qmdb-common/src/utils/short_key.rs:189
Methodload_files_into_slots
( dir_name: &str, segment_size: i64, id_list: Vec<i64>, largest_id: i64,
crates/hpfile/src/lib.rs:181
Methodload_from_dir
Loads the metadata database from the specified directory.
crates/qmdb/src/metadb.rs:344
Functionmain
()
crates/qmdb/examples/v4_memidx.rs:14
Functionmain
()
crates/qmdb/examples/v3_indexer.rs:35
Functionmain
()
crates/qmdb/examples/v2_demo.rs:16
← previousnext →901–1,000 of 1,374, ranked by callers