Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carsonpo/haystackdb
/ functions
Functions
171 in github.com/carsonpo/haystackdb
⨍
Functions
171
◇
Types & classes
27
↓ 88 callers
Method
clone
(&self)
src/structures/tree/node.rs:49
↓ 72 callers
Method
len
(&self)
src/structures/dense_vector_list.rs:177
↓ 48 callers
Method
push
(&mut self, vector: [u8; QUANTIZED_VECTOR_SIZE])
src/structures/dense_vector_list.rs:52
↓ 32 callers
Method
insert
(&mut self, key: K, value: V)
src/structures/tree.rs:27
↓ 20 callers
Method
store_node
(&mut self, node: &mut Node<K, V>)
src/structures/mmap_tree/storage.rs:76
↓ 14 callers
Method
load_node
(&mut self, offset: usize)
src/structures/mmap_tree/storage.rs:231
↓ 8 callers
Method
insert
(&mut self, key: K, value: V)
src/structures/mmap_tree.rs:43
↓ 8 callers
Method
read_from_offset
(&self, offset: usize, len: usize)
src/structures/mmap_tree/storage.rs:372
↓ 7 callers
Function
handle_query
(json_query: &str, index: &mut InvertedIndex)
tests/filters.rs:19
↓ 7 callers
Method
root_offset
(&self)
src/structures/mmap_tree/storage.rs:339
↓ 7 callers
Method
search
(&self, key: K)
src/structures/tree.rs:83
↓ 7 callers
Function
setup_inverted_index
()
tests/filters.rs:29
↓ 7 callers
Method
write_to_offset
(&mut self, offset: usize, data: &[u8])
src/structures/mmap_tree/storage.rs:367
↓ 6 callers
Function
zero_matrix
Helper function to create zero matrix for testing GEMV and GEMM
tests/math.rs:39
↓ 5 callers
Method
get
(&mut self, key: u128)
src/structures/metadata_index.rs:223
↓ 5 callers
Function
read_length
(data: &[u8])
src/structures/mmap_tree/node.rs:272
↓ 5 callers
Function
serialize_length
(buffer: &mut Vec<u8>, length: u32)
src/structures/mmap_tree/node.rs:265
↓ 5 callers
Method
set_root_offset
(&mut self, root_offset: usize)
src/structures/mmap_tree/storage.rs:348
↓ 5 callers
Method
split
(&mut self)
src/structures/tree/node.rs:63
↓ 4 callers
Function
compress_indices
(indices: Vec<usize>)
src/structures/inverted_index.rs:110
↓ 4 callers
Function
gemm
( a: &Vec<[f32; VECTOR_SIZE]>, b: &Vec<[f32; VECTOR_SIZE]>, result: &mut Vec<[f32; VECTOR_SIZE]>,
src/math/gemm.rs:3
↓ 4 callers
Function
gemv
(matrix: &Vec<[f32; VECTOR_SIZE]>, vector: &[f32; VECTOR_SIZE])
src/math/gemv.rs:3
↓ 3 callers
Method
batch_insert
(&mut self, entries: Vec<(K, V)>)
src/structures/mmap_tree.rs:269
↓ 3 callers
Function
ensure_namespace_initialized
( namespace_id: &String, active_namespaces: &Arc<Mutex<HashMap<String, tokio::task::JoinHandle<()>>>>,
src/main.rs:143
↓ 3 callers
Method
get_range
(&mut self, start: K, end: K)
src/structures/mmap_tree.rs:211
↓ 3 callers
Function
identity_matrix
Helper function to create identity matrix for testing GEMV and GEMM
tests/math.rs:30
↓ 3 callers
Method
insert
(&mut self, key: KVPair, value: InvertedIndexItem, skip_compression: bool)
src/structures/inverted_index.rs:155
↓ 3 callers
Method
is_full
(&self)
src/structures/mmap_tree/node.rs:135
↓ 3 callers
Function
one_matrix
Helper function to create a matrix of ones for testing GEMV and GEMM
tests/math.rs:44
↓ 3 callers
Function
quantize
(vec: &[f32; VECTOR_SIZE])
src/utils/quantization.rs:3
↓ 3 callers
Method
resize_mmap
(&mut self, new_len: usize)
src/structures/dense_vector_list.rs:68
↓ 3 callers
Method
used_space
(&self)
src/structures/mmap_tree/storage.rs:331
↓ 3 callers
Function
with_active_namespaces
( active_namespaces: Arc<Mutex<HashMap<String, tokio::task::JoinHandle<()>>>>, )
src/main.rs:134
↓ 2 callers
Method
acquire_block_lock
(&self, offset: usize)
src/structures/mmap_tree/storage.rs:376
↓ 2 callers
Method
add_to_commit_list
( &mut self, hash: u64, vectors: Vec<[u8; QUANTIZED_VECTOR_SIZE]>, kvs: Vec<Ve
src/structures/wal.rs:195
↓ 2 callers
Method
batch_push
( &mut self, vectors: Vec<[u8; QUANTIZED_VECTOR_SIZE]>, )
src/structures/dense_vector_list.rs:82
↓ 2 callers
Method
cmp
(&self, other: &Self)
src/structures/metadata_index.rs:38
↓ 2 callers
Method
commit
(&mut self)
src/services/commit.rs:22
↓ 2 callers
Method
compute_hash
( &self, vectors: &Vec<[u8; QUANTIZED_VECTOR_SIZE]>, kvs: &Vec<Vec<KVPair>>, )
src/structures/wal.rs:335
↓ 2 callers
Function
decompress_indices
(compressed: Vec<usize>)
src/structures/inverted_index.rs:135
↓ 2 callers
Function
hamming_distance
#[cfg(not(target_arch = "aarch64"))]
src/math/hamming_distance.rs:4
↓ 2 callers
Method
has_key
(&mut self, key: K)
src/structures/mmap_tree.rs:195
↓ 2 callers
Method
increment_and_allocate_block
(&mut self)
src/structures/mmap_tree/storage.rs:353
↓ 2 callers
Method
insert_append
(&mut self, key: KVPair, mut value: InvertedIndexItem)
src/structures/inverted_index.rs:196
↓ 2 callers
Method
is_node_full
(&self, node: &Node<K, V>)
src/structures/tree.rs:79
↓ 2 callers
Method
mark_commit_finished
(&mut self, hash: u64)
src/structures/wal.rs:439
↓ 2 callers
Method
query
( &mut self, query_vector: &[f32; VECTOR_SIZE], filters: &Filter, top_k: usize
src/services/query.rs:22
↓ 2 callers
Method
release_block_lock
(&self, offset: usize)
src/structures/mmap_tree/storage.rs:381
↓ 2 callers
Method
serialize
(&self)
src/structures/mmap_tree/node.rs:140
↓ 2 callers
Method
set_key_value
(&mut self, key: K, value: V)
src/structures/mmap_tree/node.rs:237
↓ 2 callers
Method
set_used_space
(&mut self, used_space: usize)
src/structures/mmap_tree/storage.rs:335
↓ 2 callers
Method
union
(&self, other: &Filters)
src/structures/filters.rs:61
↓ 1 callers
Method
acquire
(&self, key: String)
src/services/lock_service.rs:15
↓ 1 callers
Method
add_to_wal
( &mut self, vectors: Vec<[f32; VECTOR_SIZE]>, kvs: Vec<Vec<KVPair>>, )
src/structures/wal.rs:352
↓ 1 callers
Method
batch_add_to_wal
( &mut self, vectors: Vec<Vec<[f32; VECTOR_SIZE]>>, kvs: Vec<Vec<Vec<KVPair>>>, )
src/structures/wal.rs:392
↓ 1 callers
Function
deserialize_node_type
(data: &[u8])
src/structures/mmap_tree/node.rs:20
↓ 1 callers
Method
find_entrypoint
(&mut self, key: K)
src/structures/mmap_tree.rs:344
↓ 1 callers
Method
get
(&mut self, key: KVPair)
src/structures/inverted_index.rs:175
↓ 1 callers
Function
get_all_versions
(path: &Path)
src/services/namespace_state.rs:22
↓ 1 callers
Method
get_all_versions
(&self)
src/services/namespace_state.rs:95
↓ 1 callers
Method
get_commits_before
(&mut self, timestamp: u64)
src/structures/wal.rs:268
↓ 1 callers
Method
get_contiguous
( &self, index: usize, num_elements: usize, )
src/structures/dense_vector_list.rs:140
↓ 1 callers
Method
get_indices
(&self)
src/structures/filters.rs:35
↓ 1 callers
Method
get_range_node
( &mut self, node_offset: usize, start: K, end: K, result: &mut Vec<(K
src/structures/mmap_tree.rs:217
↓ 1 callers
Method
get_uncommitted
(&mut self, last_seconds: u64)
src/structures/wal.rs:292
↓ 1 callers
Method
has_key_node
(&mut self, node_offset: usize, key: K)
src/structures/mmap_tree.rs:199
↓ 1 callers
Method
insert_non_full
( &mut self, node_offset: usize, key: K, value: V, depth: usize, )
src/structures/mmap_tree.rs:86
↓ 1 callers
Method
insert_non_full
( &mut self, node: &mut Node<K, V>, key: K, value: V, )
src/structures/tree.rs:42
↓ 1 callers
Method
intersection
(&self, other: &Filters)
src/structures/filters.rs:44
↓ 1 callers
Method
is_subset
(&self, other: &Filters)
src/structures/filters.rs:95
↓ 1 callers
Method
recover_point_in_time
(&mut self, timestamp: u64)
src/services/commit.rs:145
↓ 1 callers
Method
release
(&self, key: String)
src/services/lock_service.rs:26
↓ 1 callers
Method
resize_mmap
(&mut self)
src/structures/mmap_tree/storage.rs:316
↓ 1 callers
Method
search_node
(&mut self, node_offset: usize, key: K)
src/structures/mmap_tree.rs:179
↓ 1 callers
Method
search_node
(&self, node: &Node<K, V>, key: K)
src/structures/tree.rs:87
↓ 1 callers
Method
serialize
(&self)
src/structures/wal.rs:39
↓ 1 callers
Function
serialize_node_type
(node_type: &NodeType)
src/structures/mmap_tree/node.rs:13
Method
add_to_wal
( &mut self, vectors: Vec<[f32; VECTOR_SIZE]>, kvs: Vec<Vec<KVPair>>, )
src/services/commit.rs:260
Method
batch_add_to_wal
( &mut self, vectors: Vec<Vec<[f32; VECTOR_SIZE]>>, kvs: Vec<Vec<Vec<KVPair>>>, )
src/services/commit.rs:281
Method
batch_insert
(&mut self, items: Vec<(u128, MetadataIndexItem)>)
src/structures/metadata_index.rs:217
Method
check_locks
Function to return a map of keys to their lock status
src/services/lock_service.rs:34
Function
criterion_benchmark
(c: &mut Criterion)
benches/hamming_distance.rs:7
Function
criterion_benchmark
(c: &mut Criterion)
benches/gemv.rs:6
Function
criterion_benchmark
(c: &mut Criterion)
benches/gemm.rs:7
Function
custom_criterion
()
benches/hamming_distance.rs:16
Function
custom_criterion
()
benches/gemv.rs:15
Function
custom_criterion
()
benches/gemm.rs:23
Method
default
()
src/structures/mmap_tree/node.rs:251
Method
default
()
src/structures/tree/node.rs:105
Function
dequantize
(vec: &[u8; QUANTIZED_VECTOR_SIZE])
src/utils/quantization.rs:13
Method
deserialize
(data: &[u8])
src/structures/metadata_index.rs:65
Method
deserialize
(data: &[u8])
src/structures/wal.rs:63
Method
deserialize
(data: &[u8])
src/structures/inverted_index.rs:52
Method
deserialize
(data: &[u8])
src/structures/mmap_tree/serialization.rs:12
Method
deserialize
(data: &[u8])
src/structures/mmap_tree/node.rs:179
Method
deserialize
(data: &[u8])
src/structures/tree/serialization.rs:12
Method
difference
(&self, other: &Filters)
src/structures/filters.rs:75
Method
eq
(&self, other: &Self)
src/structures/metadata_index.rs:24
Method
evaluate
Evaluate a Filter and return the resulting Filters object
src/structures/filters.rs:117
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/structures/metadata_index.rs:46
next →
1–100 of 171, ranked by callers