Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KShivendu/smoldb
/ functions
Functions
308 in github.com/KShivendu/smoldb
⨍
Functions
308
◇
Types & classes
113
↓ 122 callers
Method
clone
(&self)
src/api/grpc/schema.rs:708
↓ 65 callers
Method
iter
(&self)
src/storage/segment/index/vector/mod.rs:164
↓ 41 callers
Method
get
(&self, term: &str)
src/storage/segment/index/text/posting.rs:29
↓ 39 callers
Method
insert
(&self, value: i64, point_ids: Vec<u64>)
src/storage/segment/index/integer.rs:220
↓ 16 callers
Method
send
Send Raft message to this peer
src/api/grpc/schema.rs:318
↓ 13 callers
Function
create_tempdir
Creates a temporary directory for benchmark storage
benches/collection/common.rs:44
↓ 12 callers
Function
create_channel_service
Creates a default channel service
benches/collection/common.rs:49
↓ 10 callers
Function
generate_points
Generates points with IDs from 0 to num_points-1 and payloads of the form "Hello world {id}"
benches/collection/common.rs:81
↓ 10 callers
Method
insert
(&mut self, term: String, posting_list: Vec<PostingListItem>)
src/storage/segment/index/text/posting.rs:33
↓ 10 callers
Function
time
Response wrapper for a `Future` returning `Result`.
src/api/helpers.rs:22
↓ 9 callers
Function
create_collection_with_points
Creates a collection and initializes it with the given points
benches/collection/common.rs:163
↓ 8 callers
Method
as_str
(&self)
src/storage/segment/index/filter.rs:15
↓ 8 callers
Function
benchmark_group
Creates a benchmark group with default configuration
benches/collection/common.rs:192
↓ 8 callers
Function
init
( host: String, grpc_port: u16, dispatcher: Arc<Dispatcher>, )
src/api/grpc/mod.rs:64
↓ 7 callers
Function
cosine_similarity_unit_simd
SIMD-accelerated cosine similarity for unit vectors. Assumes both vectors are normalized to unit length. For unit vectors: cosine_similarity(a, b) = a
src/storage/segment/index/vector/simd.rs:9
↓ 7 callers
Method
snapshot
(&self, request_index: u64, to: u64)
src/consensus/raft_storage.rs:72
↓ 6 callers
Method
add_points
(&self, point_ids: &[u64], values: &[Value])
src/storage/segment/index/integer.rs:127
↓ 6 callers
Function
create_temp_db
Creates a temporary database for benchmark storage
benches/collection/common.rs:206
↓ 6 callers
Function
decoded_point_ids
(data: &[u8])
src/storage/segment/index/payload_index.rs:38
↓ 6 callers
Method
query
( &self, value: &str, _operation: &FilterOperator, limit: Option<usize>, )
src/storage/segment/index/text/mod.rs:117
↓ 6 callers
Method
query_points
( &self, collection_name: &str, query: Query, )
src/storage/toc.rs:199
↓ 6 callers
Method
read_points
( &self, collection_name: &str, ids: Option<Vec<PointId>>, )
src/storage/toc.rs:185
↓ 5 callers
Function
create_runtime
Creates a new multi-threaded tokio runtime for benchmarks
benches/collection/common.rs:36
↓ 5 callers
Method
get_collection
( &self, collection_name: &str, )
src/storage/toc.rs:152
↓ 5 callers
Method
get_points
(&self, ids: Option<Vec<PointId>>)
src/storage/segment/mod.rs:116
↓ 5 callers
Method
partial_cmp
(&self, other: &Self)
src/storage/segment/index/text/mod.rs:258
↓ 4 callers
Function
create_collection
Creates a collection with default configuration
benches/collection/common.rs:54
↓ 4 callers
Method
encode
(&self)
src/storage/segment/point.rs:38
↓ 4 callers
Method
entries
( &self, low: u64, high: u64, max_size: impl Into<Option<u64>>, contex
src/consensus/raft_storage.rs:49
↓ 4 callers
Method
get_consensus
Get the consensus manager if it exists, otherwise return [`ConsensusError::NotEnabled`].
src/api/dispatcher.rs:22
↓ 4 callers
Function
tokenize_and_count_frequencies
(text: &str)
src/storage/segment/index/text/tokenizer.rs:161
↓ 4 callers
Method
upsert_points
( &self, collection_name: &str, points: Vec<Point>, )
src/storage/toc.rs:171
↓ 3 callers
Method
add_index
( &mut self, db: &Db, name: &str, index_config: IndexConfig, )
src/storage/segment/index/payload_index.rs:198
↓ 3 callers
Function
add_peer_to_toc_and_consensus_state
( consensus_state: &Arc<ConsensusState>, toc: &Arc<TableOfContent>, peer_id: PeerId, uri: Uri,
src/consensus/utils.rs:7
↓ 3 callers
Method
apply_snapshot
(&self, snapshot: Snapshot)
src/consensus/raft_storage.rs:22
↓ 3 callers
Function
create_collection
Strongly recommend to use `wait=true`
tools/smolbench/src/apis.rs:62
↓ 3 callers
Method
doc_length
(&self, doc_id: u64)
src/storage/segment/index/text/bm25.rs:160
↓ 3 callers
Function
encoded_integer_value
Converts the number into a big-endian value which is suitable for querying/storing in sled This allows lexicographical ordering and hence numeric comp
src/storage/segment/index/payload_index.rs:22
↓ 3 callers
Function
encoded_point_ids
(point_ids: &[u64])
src/storage/segment/index/payload_index.rs:33
↓ 3 callers
Method
execute_cluster_operation
Executes the operation on the local shard and then on all the remote shards. If `local_only` is true, it only executes on the local shard.
src/storage/replicas/mod.rs:98
↓ 3 callers
Function
exists_collection
(url: &Uri, collection_name: &str)
tools/smolbench/src/apis.rs:142
↓ 3 callers
Method
get_pending_indexing_count
( &self, shard_holder: Option<&RwLockReadGuard<'_, ReplicaHolder>>, )
src/storage/collection.rs:320
↓ 3 callers
Method
group_by_shards
Find shards that are expected to hold the points based on the hash ring. If returned `point_ids` is `None`, it means the caller should read/write all
src/storage/replicas/mod.rs:226
↓ 3 callers
Method
insert
(&mut self, point_id: u64, vector: Vec<DimType>)
src/storage/segment/index/vector/mod.rs:159
↓ 3 callers
Method
into_bytes
(&self)
src/consensus/mod.rs:376
↓ 3 callers
Function
log_latencies
( batch_responses: &[ApiSuccessResponse<T>], p9: usize, for_what: &str, )
tools/smolbench/src/utils.rs:3
↓ 3 callers
Method
query
( &self, value: &Value, operation: &FilterOperator, limit: Option<usize>,
src/storage/segment/index/payload_index.rs:106
↓ 3 callers
Method
recompute_avg_dl
(&mut self)
src/storage/segment/index/text/bm25.rs:127
↓ 3 callers
Method
save
(&self, collection_dir: &Path)
src/storage/collection.rs:345
↓ 3 callers
Method
send_messages
Sends Raft messages via p2p gRPC APIs to other peers
src/consensus/broker.rs:19
↓ 3 callers
Method
with_points_client
( &self, f: impl Fn(PointsInternalClient<Channel>) -> O, )
src/storage/replicas/remote_shard.rs:46
↓ 2 callers
Method
add_point
(&self, point_id: u64, value: &Value)
src/storage/segment/index/text/mod.rs:52
↓ 2 callers
Method
add_remote_replicas
ToDo: Should only add a remote replica, but only for one shard at a time
src/storage/collection.rs:78
↓ 2 callers
Method
cmp
(&self, other: &Self)
src/storage/segment/index/text/mod.rs:264
↓ 2 callers
Function
decode_vector
(data: &[u8])
src/storage/segment/index/vector/mod.rs:174
↓ 2 callers
Method
delete
(&self)
src/storage/collection.rs:87
↓ 2 callers
Method
encode_payload
(&self)
src/storage/segment/point.rs:79
↓ 2 callers
Function
example_config
()
tools/raft-playground/src/main.rs:415
↓ 2 callers
Function
generate_int_queries
Generate queries for integer index
benches/collection/common.rs:125
↓ 2 callers
Function
generate_points_with_vector
Generates points with IDs from 0 to num_points-1 and payloads of the form "Hello world {id}", price, and vector of dimension 4
benches/collection/common.rs:94
↓ 2 callers
Function
generate_text_queries
Generate queries for text index
benches/collection/common.rs:135
↓ 2 callers
Function
generate_vector_queries
Generate queries for vector index
benches/collection/common.rs:149
↓ 2 callers
Function
get_collection
( url: &Uri, collection_name: &str, )
tools/smolbench/src/apis.rs:126
↓ 2 callers
Method
get_point_ids
(&self, value: i64)
src/storage/segment/index/integer.rs:230
↓ 2 callers
Method
get_replica_set
(&self, shard_id: ShardId)
src/storage/replicas/mod.rs:176
↓ 2 callers
Method
handle_committed_entries
ToDo: This function should actually apply the committed entries to the state machine. However it currently pushes forwards ones to other peers via gR
src/consensus/ready_processor.rs:84
↓ 2 callers
Method
insert_points
Insert a batch of points into the segment
src/storage/segment/mod.rs:84
↓ 2 callers
Function
is_initial_msg
The message can be used to initialize a raft node or not.
tools/raft-playground/src/main.rs:424
↓ 2 callers
Method
last_index
(&self)
src/consensus/raft_storage.rs:68
↓ 2 callers
Method
load
(path: &PathBuf)
src/storage/segment/mod.rs:64
↓ 2 callers
Function
make_default_grpc_channel
(uri: Uri)
src/api/grpc/mod.rs:54
↓ 2 callers
Function
make_grpc_channel
( timeout: Duration, connection_timeout: Duration, uri: Uri, )
src/api/grpc/mod.rs:42
↓ 2 callers
Function
merge_sorted_posting_lists
Merge two sorted posting lists, preferring items from `new` when doc_ids collide
src/storage/segment/index/text/posting.rs:63
↓ 2 callers
Method
new
(child: std::process::Child)
tools/smolbench/src/tests/utils.rs:29
↓ 2 callers
Method
perform_collection_op
( &self, operation: CollectionOperation, )
src/storage/toc.rs:98
↓ 2 callers
Method
persist
Persist stats to sled
src/storage/segment/index/text/bm25.rs:39
↓ 2 callers
Method
read_points
( &self, ids: Option<Vec<PointId>>, shard_id: Option<ShardId>, local_only: boo
src/storage/collection.rs:241
↓ 2 callers
Method
set_conf_state
(&self, conf_state: raft::eraftpb::ConfState)
src/consensus/raft_storage.rs:39
↓ 2 callers
Method
set_hardstate
(&self, hs: raft::eraftpb::HardState)
src/consensus/raft_storage.rs:31
↓ 2 callers
Method
step
Step a raft message, initialize the raft if need.
tools/raft-playground/src/main.rs:267
↓ 2 callers
Method
submit_collection_op
( &self, operation: CollectionOperation, )
src/api/dispatcher.rs:34
↓ 2 callers
Function
tokenize
Tokenize the text into terms, filtering out stop words
src/storage/segment/index/text/tokenizer.rs:152
↓ 2 callers
Function
upsert_points
( url: &Uri, collection_name: &str, num_points: usize, batch_size: usize, delay: Option<us
tools/smolbench/src/apis.rs:210
↓ 2 callers
Function
wait_consensus_ready
(url: &Uri)
tools/smolbench/src/apis.rs:13
↓ 1 callers
Function
add_all_followers
Proposes some conf change for peers [2, 5].
tools/raft-playground/src/main.rs:492
↓ 1 callers
Method
add_document
Add or update a single document's stats
src/storage/segment/index/text/bm25.rs:47
↓ 1 callers
Method
add_documents
Add or update multiple documents' stats in batch
src/storage/segment/index/text/bm25.rs:66
↓ 1 callers
Method
add_peer
Adds a peer to ToC and Consensus. local consensus state, updates remote shards, and notifies the Raft consensus loop. Not cancel safe
src/api/dispatcher.rs:62
↓ 1 callers
Method
add_peer
( &self, peer_id: PeerId, uri: Uri, )
src/consensus/mod.rs:102
↓ 1 callers
Method
add_peer_to_known
Send to bootstrap peer Proposes to add this peer as participant of consensus Returns all peers
src/api/grpc/schema.rs:359
↓ 1 callers
Method
add_point
(&self, point_id: u64, value: &Value)
src/storage/segment/index/payload_index.rs:78
↓ 1 callers
Method
add_point
(&self, point_id: u64, value: &Value)
src/storage/segment/index/vector/mod.rs:37
↓ 1 callers
Method
add_points
(&self, point_ids: &[u64], values: &[Value])
src/storage/segment/index/payload_index.rs:89
↓ 1 callers
Method
add_points
(&self, point_ids: &[u64], values: &[Value])
src/storage/segment/index/text/mod.rs:166
↓ 1 callers
Method
add_remote
Add a remote shard to the replica set
src/storage/replicas/mod.rs:69
↓ 1 callers
Method
append_entries
Append entries to the Raft log.
src/consensus/raft_storage.rs:27
↓ 1 callers
Function
avx_dot_product_f64
(v1: &[DimType], v2: &[DimType])
src/storage/segment/index/vector/simd.rs:35
↓ 1 callers
Method
bootstrap
Bootstrap the consensus from existing node (leader)
src/consensus/mod.rs:143
↓ 1 callers
Function
build_proto_files
()
build.rs:3
↓ 1 callers
Method
calculate_idf
(&self, df: usize)
src/storage/segment/index/text/bm25.rs:138
next →
1–100 of 308, ranked by callers