Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SKeyerror/reading-source-code-of-leveldb-1.23
/ functions
Functions
1,485 in github.com/SKeyerror/reading-source-code-of-leveldb-1.23
⨍
Functions
1,485
◇
Types & classes
330
↓ 10 callers
Method
iter
table/iterator_wrapper.h:22
↓ 10 callers
Method
status
db/db_iter.cc:72
↓ 9 callers
Method
Clear
db/write_batch.cc:35
↓ 9 callers
Method
DebugString
db/dbformat.cc:30
↓ 9 callers
Function
GetVarint64
util/coding.cc:139
↓ 9 callers
Function
Mask
Return a masked representation of crc. Motivation: it is problematic to compute the CRC of a string that contains embedded CRCs. Therefore we recomm
util/crc32c.h:29
↓ 9 callers
Method
NewWritableFile
db/db_test.cc:135
↓ 9 callers
Method
Put
db/db_test.cc:319
↓ 9 callers
Function
Reverse
Return reverse of "key". Used to test non-lexicographic comparators.
table/table_test.cc:28
↓ 9 callers
Function
SaveError
db/c.cc:147
↓ 9 callers
Method
Seek
db/db_iter.cc:278
↓ 9 callers
Method
SeekToLast
db/db_test.cc:2120
↓ 9 callers
Method
StartBlock
table/filter_block.cc:21
↓ 9 callers
Method
Write
leveldb Write 实现,过程如下: * 1. 循环检测 leveldb 的状态,包括 Level-0 的文件个数、MemTable 是否已满等信息,将在 * MakeRoomForWrite() 调用中完成,该函数可能会被阻塞。 * 2. 设置 WriteBatch 的 Seq
db/db_impl.cc:1226
↓ 9 callers
Function
WriteStringToFile
util/env.cc:71
↓ 9 callers
Method
current
Return the current version.
db/version_set.h:201
↓ 8 callers
Method
AddFile
Add the specified file at the specified number. REQUIRES: This version has not been saved (see VersionSet::SaveTo) REQUIRES: "smallest" and "largest"
db/version_edit.h:69
↓ 8 callers
Method
AddMessage
benchmarks/db_bench.cc:272
↓ 8 callers
Function
AppendEscapedStringTo
util/logging.cc:23
↓ 8 callers
Function
CheckEqual
db/c_test.c:31
↓ 8 callers
Function
ConsumeDecimalNumberNoDigitsTest
util/logging_test.cc:120
↓ 8 callers
Function
DelayMilliseconds
db/db_test.cc:66
↓ 8 callers
Function
EncodeKey
Conversions between numeric keys/values and the types expected by Cache.
util/cache_test.cc:15
↓ 8 callers
Method
GetFileSize
util/env_posix.cc:611
↓ 8 callers
Function
LogFileName
db/filename.cc:28
↓ 8 callers
Method
NewIterator
table/table_test.cc:347
↓ 8 callers
Method
Schedule
Schedule 方法比较简单,只是将对应的任务函数和函数参数推入至工作队列中,由 BackgroundThreadMain() * 方法取出任务并执行 */
util/env_posix.cc:783
↓ 8 callers
Method
Set
benchmarks/db_bench.cc:197
↓ 8 callers
Function
Shorten
db/dbformat_test.cc:19
↓ 8 callers
Method
Signal
port/port_stdcxx.h:80
↓ 8 callers
Method
Skewed
Skewed: pick "base" uniformly from range [0,max_log] and then return "base" random bits. The effect is to pick a number in the range [0,2^max_log-1]
util/random.h:58
↓ 8 callers
Function
TotalFileSize
db/version_set.cc:59
↓ 8 callers
Function
ok
Returns true iff the status indicates success.
include/leveldb/status.h:62
↓ 8 callers
Function
target
Return the target to which this Env forwards all calls.
include/leveldb/env.h:342
↓ 7 callers
Method
AddRecord
db/log_writer.cc:34
↓ 7 callers
Method
Append
helpers/memenv/memenv.cc:108
↓ 7 callers
Method
Clear
util/histogram.cc:171
↓ 7 callers
Method
Close
util/env_windows.cc:85
↓ 7 callers
Method
Close
db/db_test.cc:292
↓ 7 callers
Function
ConsumeDecimalNumber
util/logging.cc:49
↓ 7 callers
Function
DBSynchronize
benchmarks/db_bench_tree_db.cc:75
↓ 7 callers
Function
GetOpenFileDescriptors
Iterates through all possible FDs and returns the currently open ones. Returns void so the implementation can use ASSERT_EQ.
util/env_posix_test.cc:89
↓ 7 callers
Method
GetOverlappingInputs
Store in "*inputs" all files in "level" that overlap [begin,end]
db/version_set.cc:518
↓ 7 callers
Function
InvalidArgument
include/leveldb/status.h:54
↓ 7 callers
Method
NewWritableFile
util/testutil.h:58
↓ 7 callers
Function
NotFound
Return error status of an appropriate type. msg2 通常用于存储系统调用所返回的错误码,也就是 errno
include/leveldb/status.h:45
↓ 7 callers
Function
PrintContents
db/write_batch_test.cc:14
↓ 7 callers
Function
PutFixed64
util/coding.cc:15
↓ 7 callers
Method
ReadRecord
db/log_reader.cc:56
↓ 7 callers
Method
RenameFile
db/fault_injection_test.cc:310
↓ 7 callers
Method
SetLogNumber
db/version_edit.h:43
↓ 7 callers
Function
Status
include/leveldb/status.h:37
↓ 7 callers
Function
code
include/leveldb/status.h:93
↓ 7 callers
Method
empty
判断 buffer_ 是否为空 */
table/block_builder.h:37
↓ 7 callers
Method
num_input_files
"which" must be either 0 or 1
db/version_set.h:355
↓ 6 callers
Method
AddBytes
benchmarks/db_bench.cc:307
↓ 6 callers
Method
Append
util/env_posix.cc:265
↓ 6 callers
Function
CheckCloseOnExecDoesNotLeakFDs
Check that a fork()+exec()-ed child process does not have an extra open FD.
util/env_posix_test.cc:128
↓ 6 callers
Method
CompactRange
db/db_impl.cc:592
↓ 6 callers
Method
CreateDir
util/env_posix.cc:597
↓ 6 callers
Function
CurrentFileName
db/filename.cc:51
↓ 6 callers
Function
EncodeFixed32
简单地将 unint32 写入至 dst 中,并没有使用 varint */
util/coding.h:55
↓ 6 callers
Method
EncodeTo
db/version_edit.cc:41
↓ 6 callers
Function
ExecErrorCheck
benchmarks/db_bench_sqlite3.cc:85
↓ 6 callers
Method
Finish
table/filter_block.cc:44
↓ 6 callers
Method
GetFileSize
helpers/memenv/memenv.cc:335
↓ 6 callers
Method
LastSequence
Return the last sequence number.
db/version_set.h:225
↓ 6 callers
Method
LogAndApply
db/version_set.cc:819
↓ 6 callers
Function
NewBloomFilterPolicy
创建一个 BloomFilterPolicy 对象,bits_per_key 一般取 10 */
util/bloom.cc:90
↓ 6 callers
Method
Prev
db/db_iter.cc:209
↓ 6 callers
Function
RandomKey
db/db_test.cc:36
↓ 6 callers
Function
RepairDB
db/repair.cc:446
↓ 6 callers
Method
SetLastSequence
Set the last sequence number to s.
db/version_set.h:228
↓ 6 callers
Method
SignalAll
port/port_stdcxx.h:81
↓ 6 callers
Function
StepErrorCheck
benchmarks/db_bench_sqlite3.cc:93
↓ 6 callers
Method
edit
Return the object that holds the edits to the descriptor done by this compaction.
db/version_set.h:352
↓ 6 callers
Method
is_valid
util/env_windows.cc:94
↓ 6 callers
Method
key
db/skiplist_test.cc:156
↓ 6 callers
Method
offset
The offset of the block in the file.
table/format.h:32
↓ 5 callers
Function
AppendInternalKey
db/dbformat.cc:25
↓ 5 callers
Function
CheckIter
db/c_test.c:68
↓ 5 callers
Method
Compare
table/block.cc:91
↓ 5 callers
Method
Compare
db/dbformat.cc:51
↓ 5 callers
Function
CompressibleString
util/testutil.cc:34
↓ 5 callers
Method
DecodeFrom
table/format.cc:23
↓ 5 callers
Function
DescriptorFileName
db/filename.cc:43
↓ 5 callers
Function
Extend
util/crc32c.cc:276
↓ 5 callers
Method
FileExists
helpers/memenv/memenv.cc:289
↓ 5 callers
Method
Finish
Finish constructing the data structure with all the keys that have been added so far. Returns the keys in sorted order in "*keys" and stores the key/
table/table_test.cc:151
↓ 5 callers
Function
GenerateRandomNumber
Creates a random number in the range of [0, max).
issues/issue320_test.cc:22
↓ 5 callers
Function
GetVarint64Ptr
util/coding.cc:122
↓ 5 callers
Function
GetWindowsErrorMessage
util/env_windows.cc:48
↓ 5 callers
Method
Name
db/dbformat.cc:47
↓ 5 callers
Method
NewRandomAccessFile
util/env_posix.cc:512
↓ 5 callers
Method
NewWritableFile
helpers/memenv/memenv.cc:256
↓ 5 callers
Method
Next
db/skiplist.h:262
↓ 5 callers
Method
NumLevelFiles
db/version_set.cc:1145
↓ 5 callers
Function
ReadBlock
table/format.cc:64
↓ 5 callers
Function
ReadFileToString
util/env.cc:81
↓ 5 callers
Method
Ref
Increase the reference count.
helpers/memenv/memenv.cc:34
← previous
next →
101–200 of 1,485, ranked by callers