Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vanilla-Beauty/tiny-lsm
/ functions
Functions
562 in github.com/Vanilla-Beauty/tiny-lsm
⨍
Functions
562
◇
Types & classes
73
↓ 248 callers
Method
size
src/utils/files.cpp:21
↓ 170 callers
Method
put
src/lsm/engine.cpp:370
↓ 127 callers
Method
get
src/sst/sst.cpp:179
↓ 110 callers
Method
value
src/sst/sst_iterator.cpp:129
↓ 89 callers
Method
data
获取映射的内存指针
include/utils/mmap_file.h:22
↓ 48 callers
Method
remove
src/lsm/engine.cpp:403
↓ 48 callers
Method
size
src/block/block.cpp:382
↓ 45 callers
Method
end
src/sst/sst.cpp:226
↓ 38 callers
Method
get
src/redis_wrapper/redis_wrapper.cpp:279
↓ 36 callers
Method
add_entry
src/block/block.cpp:122
↓ 34 callers
Method
get_value
src/skiplist/skipList.cpp:46
↓ 32 callers
Method
begin
src/sst/sst.cpp:222
↓ 25 callers
Method
get_key
src/skiplist/skipList.cpp:45
↓ 24 callers
Method
get_value_binary
使用二分查找获取value 要求在插入数据时有序插入
src/block/block.cpp:266
↓ 24 callers
Method
read_to_slice
src/utils/files.cpp:60
↓ 20 callers
Method
add
src/sst/sst.cpp:270
↓ 19 callers
Method
begin_tran
开启一个事务
src/lsm/engine.cpp:876
↓ 19 callers
Method
get_tranc_id
src/lsm/level_iterator.cpp:172
↓ 17 callers
Method
is_valid
src/sst/sst_iterator.cpp:200
↓ 16 callers
Method
commit
src/lsm/transation.cpp:148
↓ 16 callers
Method
is_end
src/sst/sst_iterator.cpp:198
↓ 15 callers
Method
is_valid
src/lsm/level_iterator.cpp:183
↓ 14 callers
Method
build
src/sst/sst.cpp:330
↓ 14 callers
Method
get_tranc_id
src/sst/sst_iterator.cpp:192
↓ 13 callers
Function
init_spdlog_file
src/logger/logger.cpp:10
↓ 13 callers
Function
make_value
test/test_wisckey.cpp:17
↓ 13 callers
Method
num_blocks
src/sst/sst.cpp:192
↓ 13 callers
Method
write
写入到文件
src/utils/files.cpp:121
↓ 12 callers
Method
end
src/lsm/engine.cpp:589
↓ 12 callers
Method
get_size
src/skiplist/skipList.cpp:262
↓ 12 callers
Method
get_total_size
src/memtable/memtable.cpp:311
↓ 11 callers
Method
append
src/vlog/vlog.cpp:44
↓ 11 callers
Method
get_first_key
src/sst/sst.cpp:194
↓ 11 callers
Method
get_last_key
src/sst/sst.cpp:196
↓ 10 callers
Method
begin
src/lsm/engine.cpp:585
↓ 10 callers
Method
getRedisListSeparator
src/config/config.cpp:177
↓ 10 callers
Method
hset
哈希操作
src/redis_wrapper/redis_wrapper.cpp:302
↓ 10 callers
Method
is_end
src/lsm/two_merge_iterator.cpp:118
↓ 9 callers
Method
begin_preffix
找到前缀的起始位置 返回第一个前缀匹配或者大于前缀的迭代器
src/skiplist/skipList.cpp:285
↓ 9 callers
Method
flush
commit 时 强制写入
src/wal/wal.cpp:91
↓ 9 callers
Method
frozen_cur_table
src/memtable/memtable.cpp:292
↓ 9 callers
Method
getLsmBlockSize
src/config/config.cpp:157
↓ 9 callers
Function
get_explire_key
src/redis_wrapper/redis_wrapper.cpp:63
↓ 9 callers
Method
modify_lsm_tol_mem_size_limit
///////////////////////////////////////////////////////////// for debug/test
src/config/config.cpp:40
↓ 8 callers
Method
clear
src/lsm/engine.cpp:436
↓ 8 callers
Method
clear
清空跳表,释放内存
src/skiplist/skipList.cpp:268
↓ 8 callers
Method
getLsmBlockCacheCapacity
src/config/config.cpp:160
↓ 8 callers
Method
getLsmBlockCacheK
src/config/config.cpp:163
↓ 8 callers
Function
get_boundary
(name, key, default=0)
scripts/sst_visualize.py:101
↓ 8 callers
Method
read_block
src/sst/sst.cpp:111
↓ 8 callers
Function
tmp_dir
test/test_wisckey.cpp:21
↓ 7 callers
Method
encode
src/wal/record.cpp:52
↓ 7 callers
Method
getLsmPerMemSizeLimit
src/config/config.cpp:154
↓ 7 callers
Method
getNextTransactionId
src/lsm/transation.cpp:431
↓ 7 callers
Method
iters_monotony_predicate
返回第一个满足谓词的位置和最后一个满足谓词的迭代器 如果不存在, 范围nullptr 谓词作用于key, 且保证满足谓词的结果只在一段连续的区间内, 例如前缀匹配的谓词 predicate返回值: 0: 谓词 >0: 不满足谓词, 需要向右移动 <0: 不满足谓词, 需要向左移动 ! Skiplis
src/skiplist/skipList.cpp:348
↓ 7 callers
Method
key
src/sst/sst_iterator.cpp:122
↓ 7 callers
Method
lsm_iters_monotony_predicate
src/lsm/engine.cpp:520
↓ 7 callers
Method
read
src/utils/cursor.cpp:10
↓ 7 callers
Function
write_filler_keys
Helper: write N filler keys through LSMEngine with auto-incrementing tranc ids so each put uses a fresh id (avoids MVCC collisions with the test keys)
test/test_compact.cpp:50
↓ 6 callers
Method
add_ready_to_flush_tranc_id
src/lsm/transation.cpp:405
↓ 6 callers
Method
begin
src/block/block.cpp:390
↓ 6 callers
Method
end
src/memtable/memtable.cpp:348
↓ 6 callers
Function
get_fileds_from_hash_value
src/redis_wrapper/redis_wrapper.cpp:24
↓ 6 callers
Function
get_hash_filed_key
src/redis_wrapper/redis_wrapper.cpp:54
↓ 6 callers
Method
get_offset_at
src/block/block.cpp:115
↓ 6 callers
Function
get_zset_key_socre
src/redis_wrapper/redis_wrapper.cpp:67
↓ 6 callers
Method
hget
src/redis_wrapper/redis_wrapper.cpp:320
↓ 6 callers
Function
is_expired
src/redis_wrapper/redis_wrapper.cpp:128
↓ 6 callers
Function
read_uint64
从数据缓冲区中读取一个64位无符号整数。
scripts/sst_visualize.py:14
↓ 6 callers
Method
sismember
src/redis_wrapper/redis_wrapper.cpp:393
↓ 6 callers
Function
split
src/redis_wrapper/redis_wrapper.cpp:156
↓ 5 callers
Method
end_preffix
找到前缀的终结位置
src/skiplist/skipList.cpp:308
↓ 5 callers
Method
get
src/lsm/engine.cpp:112
↓ 5 callers
Method
getLsmSstLevelRatio
src/config/config.cpp:158
↓ 5 callers
Function
get_zset_key_elem
src/redis_wrapper/redis_wrapper.cpp:80
↓ 5 callers
Function
isolation_level_to_string
src/lsm/transation.cpp:18
↓ 5 callers
Method
log
src/wal/wal.cpp:98
↓ 5 callers
Function
make_cache
test/test_wisckey.cpp:28
↓ 5 callers
Method
modify_lsm_block_size
src/config/config.cpp:44
↓ 5 callers
Method
read_uint64
src/utils/files.cpp:107
↓ 5 callers
Method
read_uint8
src/utils/files.cpp:72
↓ 5 callers
Method
read_value
src/vlog/vlog.cpp:86
↓ 5 callers
Method
sync
src/vlog/vlog.cpp:105
↓ 4 callers
Method
decode
src/wal/record.cpp:94
↓ 4 callers
Method
decr
src/redis_wrapper/redis_wrapper.cpp:289
↓ 4 callers
Method
expire
src/redis_wrapper/redis_wrapper.cpp:293
↓ 4 callers
Method
find_block_idx
src/sst/sst.cpp:149
↓ 4 callers
Method
getLsmTolMemSizeLimit
src/config/config.cpp:151
↓ 4 callers
Method
get_sst_id
src/sst/sst.cpp:200
↓ 4 callers
Method
get_tranc_id
src/lsm/two_merge_iterator.cpp:106
↓ 4 callers
Function
html_table
根据数据行和表头生成HTML表格。
scripts/sst_visualize.py:22
↓ 4 callers
Method
is_wisckey
src/sst/sst.cpp:220
↓ 4 callers
Method
possibly_contains
如果key可能存在于布隆过滤器中,返回true;否则返回false
src/utils/bloom_filter.cpp:47
↓ 4 callers
Function
random_change_vector
伪随机,打乱vector
test/test_lsm.cpp:386
↓ 4 callers
Function
read_uint16
从数据缓冲区中读取一个16位无符号整数。
scripts/sst_visualize.py:6
↓ 4 callers
Function
read_uint32
从数据缓冲区中读取一个32位无符号整数。
scripts/sst_visualize.py:10
↓ 4 callers
Method
remove_batch
src/lsm/engine.cpp:420
↓ 4 callers
Method
resolve_value
src/sst/sst.cpp:202
↓ 3 callers
Method
abort
src/lsm/transation.cpp:287
↓ 3 callers
Method
begin
TODO: 需要进一步判断这里的 HeapIterator 能否跳过删除元素
src/memtable/memtable.cpp:318
next →
1–100 of 562, ranked by callers