MCPcopy Create free account

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

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

Functionmain
()
crates/qmdb/examples/v1_refdbfuzz/main.rs:37
Functionmain
()
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:521
Functionmain
()
bench/src/bin/test_gen_bench.rs:10
Functionmain
()
bench/src/bin/crud.rs:75
Functionmain
()
bench/src/bin/speed.rs:86
Methodmerge_kv
(k: u64, v6: &[u8; 6])
crates/qmdb/src/indexer/memidx.rs:65
Methodnew
Create a `HPFile` with a directory. If this directory was used by an old HPFile, the old HPFile must have the same `segment_size` as this one. # Para
crates/hpfile/src/lib.rs:92
Methodnew
Create a `RoHPFile` bound to a directory with files named as `fileId-segmentSize`. It opens files lazily when reading crosses into a new segment.
crates/hpfile/src/readonly.rs:21
Methodnew
()
crates/hpfile/src/file_slots.rs:134
Methodnew
Creates a new Config instance with custom values. # Arguments `dir` - Base directory for database files `wrbuf_size` - Size of the write buffer in by
crates/qmdb/src/config.rs:211
Methodnew
Creates a new sequential wrapper around `AdsWrap`.
crates/qmdb/src/seqads.rs:53
Methodnew
Creates a new AdsCore instance with the given configuration. # Arguments `task_hub` - Task hub for managing concurrent operations `config` - Database
crates/qmdb/src/lib.rs:276
Methodnew
Creates a new MetaInfo instance with default values. Initializes a fresh metadata state with: - Zero block height - Empty root hashes - Zero file siz
crates/qmdb/src/metadb.rs:159
Methodnew
Creates a new Updater instance for managing shard updates. # Arguments `shard_id` - ID of the shard this updater manages `task_hub` - Task hub for co
crates/qmdb/src/updater.rs:262
Methodnew
Creates a new Compactor instance. # Arguments `shard_id` - ID of the shard to compact `compact_trigger` - Minimum entries needed to trigger compactio
crates/qmdb/src/compactor.rs:125
Methodnew
()
crates/qmdb/src/prefetcher/dioprefetcher.rs:63
Methodnew
Creates a new JobManager. # Arguments `_` - Unused uring count parameter (for API compatibility) `_` - Unused uring size parameter (for API compatibi
crates/qmdb/src/prefetcher/uniprefetcher.rs:43
Methodnew
Creates a new empty cache shard.
crates/qmdb/src/utils/bytescache.rs:100
Methodnew
Creates a new empty `ShortList`. The list is initialized in array mode with no elements.
crates/qmdb/src/utils/shortlist.rs:50
Methodnew
Creates a new Galois LFSR with the specified seed and bit count. # Arguments `seed` - Initial state of the LFSR (must be non-zero and less than 2^bit
crates/qmdb/src/utils/lfsr.rs:44
Methodnew
(size: usize)
crates/qmdb/src/utils/bitmap.rs:15
Methodnew
()
crates/qmdb/src/utils/activebits.rs:17
Methodnew
()
crates/qmdb/src/utils/writebatch.rs:9
Methodnew
( buffer_size: usize, segment_size: i64, dir_name: String, cipher: Option<Aes2
crates/qmdb/src/entryfile/entryfile.rs:34
Methodnew
()
crates/qmdb/src/entryfile/entrycache.rs:19
Methodnew
Creates a new MultiEntryFileUringReader and its receiver. Call `receiver.start(entry_files)` to spawn the io_uring worker thread. # Arguments `entry_
crates/qmdb/src/entryfile/uring_reader.rs:220
Methodnew
()
crates/qmdb/src/indexer/memidx.rs:250
Methodnew
(idx: usize, range: Range)
crates/qmdb/src/indexer/kvlist.rs:59
Methodnew
(file: Arc<RwLock<TempFile>>, cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/file_writer.rs:21
Methodnew
(hi_arc: Arc<HybridIndexer>, merge_thres: usize)
crates/qmdb/src/indexer/hybrid/mod.rs:56
Methodnew
(cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/file_reader.rs:24
Methodnew
(ifof: Arc<RwLock<TempFile>>, cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/unit.rs:30
Methodnew
(fname: String)
crates/qmdb/src/indexer/hybrid/tempfile.rs:17
Methodnew
()
crates/qmdb/src/indexer/hybrid/ref_unit.rs:43
Methodnew
()
crates/qmdb/src/indexer/hybrid/overlay.rs:20
Methodnew
Creates a new empty proof path
crates/qmdb/src/merkletree/singleproof.rs:158
Methodnew
Creates a new NodePos from a raw 64-bit position value
crates/qmdb/src/merkletree/tree.rs:90
Methodnew
Creates a new twig file with the specified parameters # Arguments `buffer_size` - Size of I/O buffer in bytes `segment_size` - Maximum size of each f
crates/qmdb/src/merkletree/twigfile.rs:90
Methodnew
Creates a new BarrierSet for coordinating the specified number of shards. # Arguments `n` - Number of shards to synchronize # Performance - Constant
crates/qmdb/src/flusher/barrier_set.rs:19
Methodnew
Creates a new FlusherShard instance. # Arguments `tree` - Merkle tree for this shard `oldest_active_sn` - Oldest active serial number `shard_id` - ID
crates/qmdb/src/flusher/shard.rs:78
Methodnew
Creates a new Flusher instance to coordinate multi-shard operations. # Arguments `shards` - Vector of shard-specific flushers `meta` - Reference to t
crates/qmdb/src/flusher/flusher.rs:213
Methodnew
(tasks: Vec<RwLock<Option<T>>>)
crates/qmdb/src/tasks/tasksmanager.rs:24
Methodnew
()
crates/qmdb/src/tasks/bptaskhub.rs:27
Methodnew
(changesets: Vec<ChangeSet>)
crates/qmdb/src/tasks/helpers.rs:36
Methodnew
(file_name: &str, seed: &str)
crates/qmdb/src/test_helper/randsrc.rs:16
Methodnew
(randsrc: RandSrc)
crates/qmdb/src/test_helper/testgen.rs:177
Methodnew
(randsrc: RandSrc)
crates/qmdb/examples/v1_refdbfuzz/main.rs:256
Methodnew
(name: &str, config: &Config)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:32
Methodnew
Creates a new empty changeset with pre-allocated capacity.
crates/qmdb-common/src/utils/changeset.rs:271
Methodnew
Creates a new OpRecord with the specified operation type. # Arguments `op_type` - Type of operation to record # Returns A new OpRecord initialized w
crates/qmdb-common/src/utils/mod.rs:126
Methodnew
(bytes: Hash32)
crates/qmdb-common/src/utils/hasher.rs:19
Methodnew
(name: String)
crates/qmdb-common/src/utils/instruction_meter.rs:45
Methodnew
()
crates/qmdb-common/src/entryfile/readbuf.rs:11
Methodnew
()
crates/qmdb-common/src/task/single_cs_task.rs:33
Methodnew
Creates a new empty twig with all fields initialized to zero
crates/qmdb-common/src/merkletree/twig.rs:107
Methodnew
Create a new EntryMutator with the given storage and indexer
crates/qmdb-common/src/mutator/entrymutator.rs:95
Methodnew
(key_words: [u32; 8], chunk_counter: u64, flags: u32)
crates/qmdb-common/tests/reference_impl.rs:175
Methodnew
( randsrc: &mut RandSrc, entry_count: u64, cset_in_task: usize, task_in_block:
bench/src/speed/test_gen.rs:35
Methodnew
Create a new HoverGen with the given parameters
bench/src/speed/hover_gen.rs:46
Methodnew
(window_type: WindowType)
bench/src/speed/metrics.rs:24
Methodnew
(name: &str, dir: &str)
bench/src/speed/rocksdb.rs:22
Methodnew
Create a new streaming test generator
bench/src/speed/streaming_gen.rs:155
Methodnew
(entry_count: u64, entry_count_wo_del: u64)
bench/src/speed/shuffle_param.rs:14
Methodnew
(count: u64, elapsed: f64, throughput: f64)
bench/src/speed/results.rs:18
Methodnew
(entry_count: u64, entry_count_wo_del: u64)
bench/src/speed/correctness.rs:73
Methodnew_blank
Creates a new empty Merkle tree with the specified configuration # Arguments `shard_id` - ID of the shard this tree instance will manage `buffer_size
crates/qmdb/src/merkletree/tree.rs:571
Methodnew_derive_key
Construct a new `Hasher` for the key derivation function. The context string should be hardcoded, globally unique, and application-specific.
crates/qmdb-common/tests/reference_impl.rs:306
Methodnew_internal
(key_words: [u32; 8], flags: u32)
crates/qmdb-common/tests/reference_impl.rs:282
Methodnew_keyed
Construct a new `Hasher` for the keyed hash function.
crates/qmdb-common/tests/reference_impl.rs:298
Methodnew_uninit
(size: usize)
crates/hpfile/src/aligned_buf.rs:99
Methodnew_uninit
()
crates/qmdb/src/entryfile/ro_entry_cache.rs:28
Methodnew_uninit
()
crates/qmdb/src/entryfile/entrycache.rs:33
Methodnew_uninit
Creates a new empty changeset without pre-allocated capacity.
crates/qmdb-common/src/utils/changeset.rs:283
Methodnew_zeroed
(size: usize)
crates/hpfile/src/aligned_buf.rs:84
Methodnext
Advances the iterator and returns the next element. # Returns `Some((index, value))` if there are more elements `None` if iteration is complete
crates/qmdb/src/utils/shortlist.rs:216
Methodnext
(&mut self)
crates/qmdb/src/merkletree/tree.rs:1121
Methodnext
(&mut self)
crates/qmdb-common/src/entryfile/entry.rs:609
Methodnext
(&mut self)
crates/qmdb-common/src/indexer/utils/poslist.rs:89
Methodnext_kh
(&mut self, kh: [u8; 32])
crates/qmdb-common/src/entryfile/helpers.rs:33
Functionnth_at_level_from_level0nth
(level0nth: u64, level: u8)
crates/qmdb-common/src/def.rs:335
Methodnum_txn_in_blk
(&self)
bench/src/speed/test_gen.rs:70
Methodopen_internal
Internal method to open or create the metadata database. # Arguments `dir_name` - Directory path for the metadata files `cipher` - Optional AES-GCM ci
crates/qmdb/src/metadb.rs:378
Methodparse_file_id_and_segment_size
(path: &Path)
crates/hpfile/src/watcher.rs:218
Methodparse_filename
(segment_size: i64, file_name: &str)
crates/hpfile/src/lib.rs:162
Methodparse_filename
(segment_size: i64, file_name: &str)
crates/hpfile/src/readonly.rs:47
Methodpercentile
Computes a specific percentile latency (0.0 to 100.0)
bench/src/speed/metrics.rs:145
Methodpos
Creates a NodePos from a level and node index
crates/qmdb/src/merkletree/tree.rs:95
Methodpos2idx
(file_pos: i64)
crates/qmdb/src/entryfile/entrycache.rs:39
Methodprint
Prints all fields in a human-friendly format. - Byte arrays are rendered in hexadecimal - Large byte vectors show length and a short hex preview
crates/qmdb/src/metadb.rs:180
Methodprint
(&self)
crates/qmdb/src/indexer/kvlist.rs:92
Methodprint
(&self)
crates/qmdb/src/indexer/hybrid/index_cache.rs:25
Methodprint
Prints a debug representation of the tree structure This method is primarily used for debugging and development purposes to visualize the current sta
crates/qmdb/src/merkletree/tree.rs:1156
Functionprint_edge_nodes
(shard_id: usize, edge_nodes: &[EdgeNode])
crates/qmdb/src/merkletree/tree.rs:136
Functionprint_metainfo_side_by_side
(file_a: &str, file_b: &str)
crates/qmdb/src/test_helper/mod.rs:59
Methodprint_nodes
(&self)
crates/qmdb/src/merkletree/tree.rs:188
Functionprint_set
(hash_set: &HashSet<i64>)
crates/qmdb/src/indexer/memidx.rs:430
Methodprint_twig_roots
(&self)
crates/qmdb/src/merkletree/tree.rs:178
Methodprune_head
(&self, off: i64)
crates/qmdb/src/entryfile/entryfile.rs:357
Functionptr_short_key
(key: &usize)
crates/qmdb-common/src/utils/short_key.rs:182
Methodread_all_entries
(&self, out: SyncSender<Vec<u8>>)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:144
← previousnext →1,001–1,100 of 1,374, ranked by callers