Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fullstop000/wickdb
/ functions
Functions
886 in github.com/Fullstop000/wickdb
⨍
Functions
886
◇
Types & classes
135
↓ 234 callers
Method
clone
(&self)
src/table_cache.rs:114
↓ 90 callers
Method
put
(&self, options: WriteOptions, key: &[u8], value: &[u8])
src/db/mod.rs:109
↓ 68 callers
Method
iter
(&self)
src/mem/mod.rs:92
↓ 65 callers
Method
len
(&self)
src/mem/mod.rs:98
↓ 56 callers
Method
as_slice
(&self)
src/util/slice.rs:42
↓ 48 callers
Method
lock
(&self)
src/record/mod.rs:172
↓ 45 callers
Method
len
(&self)
src/storage/mem.rs:473
↓ 44 callers
Method
as_str
Return the inner user key as a &str
src/db/format.rs:105
↓ 43 callers
Function
key
(i: usize)
src/db/mod.rs:1864
↓ 41 callers
Method
write
(&mut self, buf: &[u8])
src/record/mod.rs:118
↓ 38 callers
Function
assert_iter_entry
(iter: &dyn Iterator, k: &str, v: &str)
src/db/mod.rs:2100
↓ 36 callers
Method
compare
(&self, other: &Slice)
src/util/slice.rs:56
↓ 34 callers
Method
len
(&self)
src/db/format.rs:168
↓ 33 callers
Method
data
(&self)
src/db/format.rs:163
↓ 32 callers
Method
as_ref
(&self)
src/util/slice.rs:112
↓ 32 callers
Method
clear
(&mut self)
src/version/version_edit.rs:164
↓ 29 callers
Method
create
(&self, name: P)
src/storage/mem.rs:151
↓ 29 callers
Method
force_compact_mem_table
Force current memtable contents(even if the memtable is not full) to be compacted into sst files
src/db/mod.rs:989
↓ 26 callers
Function
new_record_test
()
src/record/mod.rs:391
↓ 26 callers
Method
reopen
Close the inner db without destroy the contents and establish a new WickDB on same db path with same option
src/db/mod.rs:1615
↓ 25 callers
Method
next
(&mut self)
src/db/iterator.rs:95
↓ 23 callers
Method
write
(&mut self, buf: &[u8])
src/storage/mem.rs:419
↓ 22 callers
Method
is_empty
(&self)
src/mem/mod.rs:103
↓ 22 callers
Method
iter
(&self, read_opt: ReadOptions)
src/db/mod.rs:119
↓ 21 callers
Method
current
(&self)
src/version/version_set.rs:299
↓ 21 callers
Method
insert
Insert the given key as a node into the skiplist. The key must be unique otherwise this method panics. # NOTICE: Concurrent insertion is not thread
src/mem/skiplist.rs:129
↓ 21 callers
Method
len
(&self)
src/record/mod.rs:168
↓ 20 callers
Method
assert_approximate_size
(&self, start: &str, end: &str, a: usize, b: usize)
src/db/mod.rs:1804
↓ 20 callers
Function
default_cases
()
src/db/mod.rs:1576
↓ 20 callers
Method
get
If memtable contains a value for key, returns it in `Some(Ok())`. If memtable contains a deletion for key, returns `Some(Err(Status::NotFound))` . If
src/mem/mod.rs:146
↓ 20 callers
Method
prev
(&mut self)
src/db/iterator.rs:126
↓ 20 callers
Method
remove
Same as `remove_file`
src/storage/mem.rs:202
↓ 20 callers
Method
user_key
(&self)
src/db/format.rs:173
↓ 17 callers
Method
add
Add an entry into memtable that maps key to value at the specified sequence number and with the specified type. Typically value will be empty if the t
src/mem/mod.rs:129
↓ 17 callers
Method
assert_file_num_at_level
Check the number of sst files at `level` in current version
src/db/mod.rs:1783
↓ 17 callers
Method
read
(&mut self, buf: &mut [u8])
src/record/mod.rs:146
↓ 17 callers
Method
valid
(&self)
src/db/iterator.rs:60
↓ 16 callers
Method
assert_get
(&self, k: &str, expect: Option<&str>)
src/db/mod.rs:1648
↓ 16 callers
Function
generate_filename
Returns a filename for a certain `FileType` by given sequence number and a `dirname`. # Safety `dirname` must be a valid unicode string
src/db/filename.rs:48
↓ 16 callers
Method
iter
Create a BlockIterator for current block.
src/sstable/block.rs:80
↓ 16 callers
Function
put_fixed_64
Encodes the given u64 to bytes and concatenates the result to `dst`
src/util/coding.rs:97
↓ 15 callers
Method
delete
(&self, options: WriteOptions, key: &[u8])
src/db/mod.rs:135
↓ 15 callers
Method
new_file
( &mut self, number: u64, smallest: InternalKey, largest: Inte
src/version/version_set.rs:1263
↓ 15 callers
Method
seek_to_first
(&mut self)
src/db/iterator.rs:64
↓ 14 callers
Function
big_string
Construct a string of the specified length made out of the supplied partial string.
src/record/mod.rs:76
↓ 14 callers
Method
compact_range_at
Schedue a manual compaction for the key range `[begin, end]` at level `level`
src/db/mod.rs:231
↓ 14 callers
Method
insert
(&self, key: K, mut value: V, charge: usize)
src/cache/lru.rs:145
↓ 14 callers
Method
valid
(&self)
src/sstable/mod.rs:596
↓ 13 callers
Method
assert_put_get
(&self, key: &str, value: &str)
src/db/mod.rs:1773
↓ 13 callers
Function
decode_fixed_32
Decodes the first 4-bytes of `src` in little-endian and returns the decoded value. If the length of the given `src` is larger than 4, only use `src[0
src/util/coding.rs:58
↓ 13 callers
Function
decode_fixed_64
Decodes the first 8-bytes of `src` in little-endian and returns the decoded value. If the length of the given `src` is larger than 8, only use `src[0
src/util/coding.rs:75
↓ 13 callers
Method
valid
(&self)
src/iterator.rs:191
↓ 12 callers
Function
extract_user_key
(key: &[u8])
src/db/format.rs:373
↓ 11 callers
Method
add_key
Adds the given key into the builder
src/sstable/filter_block.rs:55
↓ 11 callers
Function
clean
Remove all the relative part (also the root prefix) and rebuild a new `PathBuf` by concatenating all normal components.
src/storage/mem.rs:135
↓ 11 callers
Method
compact
(&self, begin: Option<&str>, end: Option<&str>)
src/db/mod.rs:1750
↓ 11 callers
Function
rand_string
(n: usize)
src/db/mod.rs:1857
↓ 11 callers
Method
read
(&mut self, buf: &mut [u8])
src/storage/mem.rs:465
↓ 11 callers
Method
seek
(&mut self, target: &[u8])
src/db/iterator.rs:82
↓ 11 callers
Method
write
(&self, options: WriteOptions, batch: WriteBatch)
src/db/mod.rs:141
↓ 10 callers
Method
add
Appends key and value to the buffer # Panic If this BlockBuilder is finished If the `counter` is invalid If the given `key` is not consistent with t
src/sstable/block.rs:404
↓ 10 callers
Method
append
Copies the operations in "source" to this batch.
src/batch.rs:99
↓ 10 callers
Function
extract_varint32_encoded_slice
Decodes the length (varint u32) from `src` and advances it.
src/mem/mod.rs:238
↓ 10 callers
Method
open
Attempt to open the table that is stored in bytes `[0..size)` of `file`, and read the metadata entries necessary to allow retrieving data from the tab
src/sstable/table.rs:52
↓ 10 callers
Function
put_fixed_32
Encodes the given u32 to bytes and concatenates the result to `dst`
src/util/coding.rs:90
↓ 10 callers
Method
report_drop
report record dropping to the `reporter`
src/record/reader.rs:328
↓ 10 callers
Method
seek
(&mut self, target: &[u8])
src/iterator.rs:223
↓ 9 callers
Function
add_boundary_inputs_for_compact_files
Add SST files which should have been included in `level` compaction but excluded by some reasons (e.g output size limit truncating). This guarantees t
src/version/version_set.rs:1011
↓ 9 callers
Method
data
(&self)
src/batch.rs:70
↓ 9 callers
Method
finish
Finishes building the table and close the relative file. If `sync` is true, the `File::flush` will be called. # Panics The table builder is closed
src/sstable/table.rs:400
↓ 9 callers
Method
get_count
(&self)
src/batch.rs:175
↓ 9 callers
Method
get_mut
Returns a raw pointer with given arena offset
src/mem/arena.rs:108
↓ 9 callers
Function
hash
(data: &[u8], seed: u32)
src/util/hash.rs:21
↓ 9 callers
Method
is_empty
(&self)
src/db/format.rs:158
↓ 9 callers
Method
iter
(&self)
src/sstable/mod.rs:534
↓ 9 callers
Method
key
(&self)
src/db/iterator.rs:153
↓ 9 callers
Method
seek_to_last
(&mut self)
src/db/iterator.rs:75
↓ 9 callers
Method
snapshot
(&self)
src/db/mod.rs:168
↓ 9 callers
Method
start_block
Generates filter data for the data block on given `block_offset`
src/sstable/filter_block.rs:62
↓ 9 callers
Method
status
(&mut self)
src/db/iterator.rs:169
↓ 8 callers
Method
assert_key_and_value
(&self)
src/iterator.rs:557
↓ 8 callers
Method
close
(&mut self)
src/db/mod.rs:145
↓ 8 callers
Method
get_next
height, 0-based index
src/mem/inlineskiplist.rs:44
↓ 8 callers
Method
get_overlapping_inputs
Return all files in `level` that overlap [`begin`, `end`] Notice that both `begin` and `end` is `InternalKey` but we just compare the user key directl
src/version/mod.rs:496
↓ 8 callers
Method
key
(&self)
src/iterator.rs:244
↓ 8 callers
Function
make_key
Format of key: key | gen | hash
src/mem/skiplist.rs:666
↓ 8 callers
Method
mkdir_all
(&self, dir: P)
src/storage/mem.rs:316
↓ 8 callers
Method
put
Stores the mapping "key -> value" in the database
src/batch.rs:75
↓ 8 callers
Method
put_entries
Put entries with default `WriteOptions`
src/db/mod.rs:1623
↓ 8 callers
Function
total_file_size
(files: &[Arc<FileMetaData>])
src/version/version_set.rs:1107
↓ 7 callers
Method
acquire
Creates a `Snapshot` and appends it to the end of the list
src/snapshot.rs:93
↓ 7 callers
Method
approximate_size
(&self)
src/batch.rs:94
↓ 7 callers
Method
assert_or_return
(&self, key: &[u8], want: bool, assert: bool)
src/filter/bloom.rs:140
↓ 7 callers
Function
encode_fixed_32
Encodes `value` in little-endian and puts it in the first 4-bytes of `dst`. # Panics Panics if `dst.len()` is less than 4.
src/util/coding.rs:26
↓ 7 callers
Function
new_test_skl
()
src/mem/skiplist.rs:388
↓ 7 callers
Method
next_entry_offset
(&self)
src/sstable/block.rs:157
↓ 7 callers
Function
reverse
Return the reverse of given key
src/sstable/mod.rs:397
↓ 7 callers
Method
set_log_number
(&mut self, log_num: u64)
src/version/version_set.rs:255
↓ 7 callers
Method
valid_or_panic
(&self)
src/iterator.rs:182
↓ 6 callers
Method
add
(&mut self, smallest: &str, largest: &str)
src/version/mod.rs:745
next →
1–100 of 886, ranked by callers