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
Method
from
(collection: &Collection)
src/storage/collection.rs:378
Method
from
(id: u64)
src/storage/segment/point.rs:22
Method
from
(toc: Arc<TableOfContent>, consensus: Option<Arc<ConsensusManager>>)
src/api/dispatcher.rs:17
Method
from
(peer_id: PeerId, collection: &Collection)
src/api/collection.rs:117
Method
from
(entry: &Entry)
src/consensus/debuggables.rs:16
Method
from_arc
(inner: Arc<T>)
src/api/grpc/schema.rs:578
Method
from_entry
(entry: &Entry)
src/consensus/mod.rs:381
Method
from_grpc
(query: Option<GrpcQueryPointsParams>)
src/api/grpc/conversion.rs:6
Function
generate_random_points
(num_points: usize)
benches/collection/common.rs:110
Function
get_cluster
(dispatcher: web::Data<Dispatcher>)
src/api/cluster.rs:14
Function
get_collection
( collection_name: web::Path<String>, dispatcher: web::Data<Dispatcher>, )
src/api/collection.rs:45
Function
get_collection_cluster_info
( collection_name: web::Path<String>, dispatcher: web::Data<Dispatcher>, )
src/api/collection.rs:158
Function
get_collections
(dispatcher: web::Data<Dispatcher>)
src/api/collection.rs:23
Method
get_index_names
(&self)
src/storage/segment/index/payload_index.rs:194
Method
get_or_create
Read from the database to get existing indices and their types. If no indices are found, create a new empty index.
src/storage/segment/index/payload_index.rs:168
Method
get_pending_indexing_count
Get the total count of pending points in the indexing queue across all segments
src/storage/replicas/local_shard.rs:180
Function
get_point
( path: web::Path<(String, String)>, dispatcher: web::Data<Dispatcher>, )
src/api/points.rs:72
Method
get_points
(&self, ids: Option<Vec<PointId>>)
src/storage/replicas/local_shard.rs:32
Method
get_points
(&self, ids: Option<Vec<PointId>>)
src/storage/replicas/remote_shard.rs:66
Method
get_points
( &mut self, request: impl tonic::IntoRequest<super::GetPointsRequest>, )
src/api/grpc/schema.rs:497
Method
get_points
( &self, request: tonic::Request<GetPointsRequest>, )
src/api/grpc/points_service.rs:31
Method
init
( id: CollectionName, config: CollectionConfig, path: &Path, channel_service:
src/storage/collection.rs:39
Method
init
( path: PathBuf, id: ShardId, payload_schema: Option<BTreeMap<String, IndexConfig>>,
src/storage/replicas/local_shard.rs:92
Method
initial_state
(&self)
src/consensus/raft_storage.rs:45
Function
int_indexing
(c: &mut Criterion)
benches/collection/index.rs:14
Function
int_query
(c: &mut Criterion)
benches/collection/query.rs:12
Function
list_points
( collection_name: web::Path<String>, dispatcher: web::Data<Dispatcher>, )
src/api/points.rs:116
Method
load
( id: CollectionName, path: &Path, channel_service: Arc<ChannelService>, )
src/storage/collection.rs:102
Method
load
(channel_service: ChannelService)
src/storage/toc.rs:37
Method
load
(path: &PathBuf)
src/storage/replicas/local_shard.rs:124
Function
main
()
build.rs:31
Function
main
()
tools/raft-playground/src/main.rs:62
Function
main
()
tools/smolbench/src/main.rs:27
Function
main
()
src/main.rs:32
Method
max_decoding_message_size
(mut self, limit: usize)
src/api/grpc/schema.rs:193
Method
max_encoding_message_size
(mut self, limit: usize)
src/api/grpc/schema.rs:201
Method
mkdir_collection_dir
Creates a new directory at the expected collection path.
src/storage/toc.rs:79
Method
new
(peer_id: PeerId, id_to_address: Arc<RwLock<HashMap<PeerId, Uri>>>)
src/channel_service.rs:31
Method
new
(key: impl Into<String>, value: impl Into<Value>, op: FilterOperator)
src/storage/segment/index/filter.rs:50
Method
new
Load in-memory index from disk
src/storage/segment/index/integer.rs:205
Method
new
(tree: &sled::Tree)
src/storage/segment/index/vector/mod.rs:148
Method
new
(tree: &sled::Tree)
src/storage/segment/index/text/posting.rs:14
Method
new
( local: LocalShard, collection_id: CollectionName, shard_id: ShardId, channel
src/storage/replicas/mod.rs:49
Method
new
Init a remote shard in memory that can be used to communicate with replicas on a remote peer.
src/storage/replicas/remote_shard.rs:31
Method
new
(dispatcher: Arc<Dispatcher>)
src/api/grpc/raft_service.rs:21
Method
new
(inner: T)
src/api/grpc/schema.rs:147
Method
new
(toc: Arc<TableOfContent>)
src/api/grpc/points_service.rs:24
Method
new
Create a new ConsensusState with a given p2p URI and optional default peer ID.
src/consensus/mod.rs:81
Method
new
(peer_id: PeerId)
src/consensus/raft_storage.rs:17
Method
new
(state: Arc<ConsensusState>, sender: Sender<Msg>)
src/consensus/manager.rs:14
Method
new_numeric
(db: &Db, name: &str)
src/storage/segment/index/payload_index.rs:61
Method
new_text
(db: &Db, name: &str)
src/storage/segment/index/payload_index.rs:66
Method
new_vector
(db: &Db, name: &str)
src/storage/segment/index/payload_index.rs:71
Method
normal
(key: u16, value: String)
tools/raft-playground/src/main.rs:454
Method
open
(_db: &Db, _name: &str, _use_in_memory: bool)
src/storage/segment/index/payload_index.rs:100
Method
open
(db: &sled::Db, name: &str, use_in_memory: bool)
src/storage/segment/index/vector/mod.rs:26
Method
open
(db: &Db, name: &str, use_in_memory: bool)
src/storage/segment/index/text/mod.rs:33
Method
open
Create a new BM25Scorer instance, loading existing stats from sled
src/storage/segment/index/text/bm25.rs:22
Function
parse_number
(n: &str)
tools/smolbench/src/args.rs:25
Function
parse_uri
(s: &str)
src/args.rs:4
Method
poll_ready
( &mut self, _cx: &mut Context<'_>, )
src/api/grpc/schema.rs:634
Method
query
( &self, query: &[DimType], _operation: &FilterOperator, // todo: allow specifying dis
src/storage/segment/index/vector/mod.rs:81
Method
query_points
(&self, query: Query)
src/storage/segment/mod.rs:192
Method
query_points
(&self, query: Query)
src/storage/replicas/local_shard.rs:58
Method
query_points
(&self, query: Query)
src/storage/replicas/remote_shard.rs:147
Method
query_points
( &self, request: tonic::Request<QueryPointsRequest>, )
src/api/grpc/points_service.rs:78
Function
random_vector
(dim: usize)
tools/smolbench/src/apis.rs:205
Function
read
(c: &mut Criterion)
benches/collection/read.rs:12
Method
root_api
( &self, _request: Request<RootApiRequest>, )
src/api/grpc/simple_service.rs:10
Method
root_api
Returns the title and version of the service - useful for debugging
src/api/grpc/schema.rs:206
Method
send
(&self, mut request: Request<RaftMessageBytes>)
src/api/grpc/raft_service.rs:28
Method
send_compressed
(mut self, encoding: CompressionEncoding)
src/api/grpc/schema.rs:179
Method
spawn_indexing_thread
Spawns a dedicated thread to run the indexing loop for a segment
src/storage/replicas/local_shard.rs:75
Method
start
Initialize consensus and run in loop with a dedicated thread.
src/consensus/mod.rs:198
Method
term
(&self, idx: u64)
src/consensus/raft_storage.rs:60
Function
test_collection_config_save
()
src/storage/collection.rs:444
Function
test_collection_init
()
src/storage/collection.rs:408
Function
test_collection_load
()
src/storage/collection.rs:466
Function
test_collection_write_read_points
()
src/storage/collection.rs:493
Function
test_cosine_similarity_unit_simd
()
src/storage/segment/index/vector/simd.rs:115
Function
test_cosine_similarity_unit_simd_larger
()
src/storage/segment/index/vector/simd.rs:145
Function
test_cosine_similarity_unit_simd_odd_length
()
src/storage/segment/index/vector/simd.rs:164
Function
test_merge_sorted_posting_lists
()
src/storage/segment/index/text/posting.rs:101
Function
test_parse_number
()
tools/smolbench/src/args.rs:111
Function
test_payload_index
()
src/storage/segment/index/payload_index.rs:322
Function
test_point_encode_decode
()
src/storage/segment/point.rs:104
Function
test_posting_list_encoding_size
()
src/storage/segment/index/text/posting.rs:124
Function
test_segment_insert_read_points
()
src/storage/segment/mod.rs:286
Function
test_shard_routing
()
src/storage/replicas/mod.rs:265
Function
test_smoldb_consecutive_writes
()
tools/smolbench/src/tests/mod.rs:9
Function
test_stop_words_filtered
()
src/storage/segment/index/text/tokenizer.rs:190
Function
test_text_index
()
src/storage/segment/index/text/mod.rs:302
Function
test_text_index_only_disk
()
src/storage/segment/index/text/mod.rs:378
Function
test_tokenizer
()
src/storage/segment/index/text/tokenizer.rs:174
Function
text_indexing
(c: &mut Criterion)
benches/collection/index.rs:49
Function
text_query
Perf when bench was first implemented: single=1.5804 µs, concurrent=5.7696 µs
benches/collection/text_search.rs:13
Method
try_from
(uuid: &str)
src/storage/segment/point.rs:30
Method
try_from
(op: String)
src/storage/segment/index/filter.rs:29
Method
upsert_points
(&self, points: Vec<Point>)
src/storage/replicas/local_shard.rs:46
Method
upsert_points
(&self, points: Vec<Point>)
src/storage/replicas/remote_shard.rs:114
← previous
next →
201–300 of 308, ranked by callers