Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YZhao-prog/SharkDB
/ functions
Functions
213 in github.com/YZhao-prog/SharkDB
⨍
Functions
213
◇
Types & classes
43
Method
deserialize_i64
(self, visitor: V)
src/storage/keycode.rs:358
Method
deserialize_i8
(self, visitor: V)
src/storage/keycode.rs:337
Method
deserialize_identifier
(self, visitor: V)
src/storage/keycode.rs:533
Method
deserialize_ignored_any
(self, visitor: V)
src/storage/keycode.rs:540
Method
deserialize_map
(self, visitor: V)
src/storage/keycode.rs:502
Method
deserialize_newtype_struct
(self, name: &'static str, visitor: V)
src/storage/keycode.rs:469
Method
deserialize_option
(self, visitor: V)
src/storage/keycode.rs:448
Method
deserialize_seq
(self, visitor: V)
src/storage/keycode.rs:476
Method
deserialize_str
(self, visitor: V)
src/storage/keycode.rs:420
Method
deserialize_string
(self, visitor: V)
src/storage/keycode.rs:427
Method
deserialize_struct
( self, name: &'static str, fields: &'static [&'static str], visitor: V, )
src/storage/keycode.rs:509
Method
deserialize_tuple
(self, len: usize, visitor: V)
src/storage/keycode.rs:483
Method
deserialize_tuple_struct
( self, name: &'static str, len: usize, visitor: V, )
src/storage/keycode.rs:490
Method
deserialize_u16
(self, visitor: V)
src/storage/keycode.rs:372
Method
deserialize_u32
(self, visitor: V)
src/storage/keycode.rs:379
Method
deserialize_u64
(self, visitor: V)
src/storage/keycode.rs:386
Method
deserialize_u8
(self, visitor: V)
src/storage/keycode.rs:365
Method
deserialize_unit
(self, visitor: V)
src/storage/keycode.rs:455
Method
deserialize_unit_struct
(self, name: &'static str, visitor: V)
src/storage/keycode.rs:462
Method
end
• 方法 end: • 在序列中的所有元素都已序列化完成后,会调用 end 方法结束序列化过程。 • 当前实现只是简单返回 Ok(()),表示序列结束时无需额外操作。
src/storage/keycode.rs:246
Method
execute
(self, txn: &mut T)
src/sql/plan/mod.rs:30
Method
execute
(self: Box<Self>, txn: &mut T)
src/sql/executor/mutation.rs:68
Method
execute
(self: Box<Self>, txn: &mut T)
src/sql/executor/schema.rs:16
Method
execute
(self: Box<Self>, txn: &mut T)
src/sql/executor/query.rs:16
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/error.rs:66
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/sql/parser/lexer.rs:91
Method
from
(value: std::num::ParseIntError)
src/error.rs:16
Method
from
(value: Consts)
src/sql/parser/ast.rs:34
Method
from_expression
(expr: Expression)
src/sql/types/mod.rs:23
Method
from_str
(indent: &str)
src/sql/parser/lexer.rs:32
Method
get
get data in disk by (offset of value, value len) in keydir
src/storage/disk.rs:86
Method
get
(&mut self, key: Vec<u8>)
src/storage/memory.rs:23
Method
new
(sql_text: &'a str)
src/sql/parser/lexer.rs:147
Method
new
(input: &'a str)
src/sql/parser/mod.rs:19
Method
new
(engine: E)
src/sql/engine/kv.rs:19
Method
new
()
src/sql/plan/planner.rs:8
Method
new
(table_name: String, columns: Vec<String>, values: Vec<Vec<Expression>>)
src/sql/executor/mutation.rs:15
Method
new
(schema: Table)
src/sql/executor/schema.rs:10
Method
new
(table_name: String)
src/sql/executor/query.rs:10
Method
new
(file_path: PathBuf)
src/storage/disk.rs:20
Method
new
(eng: E)
src/storage/mvcc.rs:35
Method
new
()
src/storage/memory.rs:10
Method
new_compact
rewrite log data to a new tmp file, then set tmp file as formal data file
src/storage/disk.rs:28
Method
newtype_variant_seed
(self, seed: T)
src/storage/keycode.rs:581
Method
next
(&mut self)
src/storage/memory.rs:59
Method
next_back
(&mut self)
src/storage/memory.rs:66
Method
next_element_seed
(&mut self, seed: T)
src/storage/keycode.rs:551
Method
read_entry
(buf_reader: &mut BufReader<&File>, offset: u64)
src/storage/disk.rs:232
Method
scan
(&mut self, range: impl std::ops::RangeBounds<Vec<u8>>)
src/storage/memory.rs:33
Method
scan_active
(engine: &mut MutexGuard<E>)
src/storage/mvcc.rs:313
Method
serialize_bool
(self, v: bool)
src/storage/keycode.rs:45
Method
serialize_bytes
origin encode 97 98 99 -> 97 98 99 0 0 97 98 0 99 -> 97 98 0 255 99 0 0 97 98 0 0 99 -> 97 98 0 255 0 255 99 0 0
src/storage/keycode.rs:103
Method
serialize_char
(self, v: char)
src/storage/keycode.rs:91
Method
serialize_element
• 方法 serialize_element: • 每调用一次 serialize_element 就表示对序列中的一个元素进行序列化。 • 方法中调用了 value.serialize(&mut **self): • self 的类型是 &mut Serializer,其中一层 * 解引用后得到
src/storage/keycode.rs:237
Method
serialize_f32
(self, v: f32)
src/storage/keycode.rs:83
Method
serialize_f64
(self, v: f64)
src/storage/keycode.rs:87
Method
serialize_field
(&mut self, value: &T)
src/storage/keycode.rs:273
Method
serialize_i16
(self, v: i16)
src/storage/keycode.rs:53
Method
serialize_i32
(self, v: i32)
src/storage/keycode.rs:57
Method
serialize_i64
(self, v: i64)
src/storage/keycode.rs:61
Method
serialize_i8
(self, v: i8)
src/storage/keycode.rs:49
Method
serialize_map
(self, len: Option<usize>)
src/storage/keycode.rs:208
Method
serialize_newtype_struct
(self, name: &'static str, value: &T)
src/storage/keycode.rs:149
Method
serialize_newtype_variant
eg: TxnAcvtive(Version)
src/storage/keycode.rs:157
Method
serialize_none
(self)
src/storage/keycode.rs:117
Method
serialize_seq
(self, len: Option<usize>)
src/storage/keycode.rs:173
Method
serialize_some
(self, value: &T)
src/storage/keycode.rs:121
Method
serialize_str
(self, v: &str)
src/storage/keycode.rs:95
Method
serialize_struct
(self, name: &'static str, len: usize)
src/storage/keycode.rs:212
Method
serialize_struct_variant
( self, name: &'static str, variant_index: u32, variant: &'static str,
src/storage/keycode.rs:216
Method
serialize_tuple
(self, len: usize)
src/storage/keycode.rs:177
Method
serialize_tuple_struct
( self, name: &'static str, len: usize, )
src/storage/keycode.rs:181
Method
serialize_tuple_variant
eg: TxnWrite(Version, Vec<u8>) 方法返回 Ok(self),这里的 self 是当前的序列化器实例,并且它实现了 SerializeTupleVariant trait。 • 返回后的序列化器实例会被用来依次调用 serialize_field(在 SerializeT
src/storage/keycode.rs:197
Method
serialize_u16
(self, v: u16)
src/storage/keycode.rs:69
Method
serialize_u32
(self, v: u32)
src/storage/keycode.rs:73
Method
serialize_u64
(self, v: u64)
src/storage/keycode.rs:77
Method
serialize_u8
(self, v: u8)
src/storage/keycode.rs:65
Method
serialize_unit
(self)
src/storage/keycode.rs:128
Method
serialize_unit_struct
(self, name: &'static str)
src/storage/keycode.rs:132
Method
set
(&mut self, key: Vec<u8>, value: Vec<u8>)
src/storage/memory.rs:18
Method
struct_variant
(self, fields: &'static [&'static str], visitor: V)
src/storage/keycode.rs:595
Function
test_create_table
()
src/sql/engine/kv.rs:134
Function
test_decode
()
src/storage/keycode.rs:647
Function
test_delete
()
src/storage/mvcc.rs:684
Function
test_delete_conflict
()
src/storage/mvcc.rs:718
Function
test_dirty_read
()
src/storage/mvcc.rs:745
Function
test_disk
()
src/storage/engine.rs:136
Function
test_disk_engine_compact
()
src/storage/disk.rs:257
Function
test_encode
()
src/storage/keycode.rs:611
Function
test_encode_prefix
()
src/storage/keycode.rs:631
Function
test_get
()
src/storage/mvcc.rs:368
Function
test_get_isolation
()
src/storage/mvcc.rs:404
Function
test_lexer_create_table
()
src/sql/parser/lexer.rs:253
Function
test_lexer_insert_into
()
src/sql/parser/lexer.rs:310
Function
test_lexer_select
()
src/sql/parser/lexer.rs:375
Function
test_memory
()
src/storage/engine.rs:128
Function
test_parse_create_table
()
src/sql/parser/mod.rs:240
Function
test_parser_insert
()
src/sql/parser/mod.rs:284
Function
test_parser_select
()
src/sql/parser/mod.rs:328
Function
test_phantom_read
()
src/storage/mvcc.rs:839
← previous
next →
101–200 of 213, ranked by callers