Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosdata/cosdata
/ functions
Functions
1,701 in github.com/cosdata/cosdata
⨍
Functions
1,701
◇
Types & classes
375
↳
Endpoints
1
↓ 302 callers
Method
clone
(&self)
src/models/versioned_vec.rs:95
↓ 255 callers
Method
iter
( &self, )
src/models/lru_cache.rs:334
↓ 218 callers
Method
push
(&self, version: VersionNumber, quotient: u64, value: T)
src/models/tree_map.rs:350
↓ 215 callers
Method
len
(&self)
src/models/atomic_array.rs:57
↓ 206 callers
Method
read
(&self)
src/models/wal.rs:265
↓ 197 callers
Method
get
(&self, quotient: u64)
src/models/tree_map.rs:363
↓ 172 callers
Method
seek_with_cursor
(&self, cursor_id: u64, pos: u64)
src/models/buffered_io.rs:418
↓ 168 callers
Method
append
(&self, op: VectorOp)
src/models/wal.rs:173
↓ 161 callers
Method
insert
(&self, k: K, v: V)
src/models/common.rs:520
↓ 157 callers
Method
load
Loads collections map from lmdb
src/models/types.rs:581
↓ 121 callers
Method
open_cursor
(&self)
src/models/buffered_io.rs:169
↓ 111 callers
Method
close_cursor
@DOUBT: The caller will need to remember to call close_cursor, other wise the cursors will keep accumulating. One way to prevent that can be to implem
src/models/buffered_io.rs:183
↓ 110 callers
Method
read_u32_with_cursor
(&self, cursor_id: u64)
src/models/buffered_io.rs:227
↓ 103 callers
Method
update_u32_with_cursor
(&self, cursor_id: u64, value: u32)
src/models/buffered_io.rs:302
↓ 96 callers
Function
ws
(inner: F)
org/src/cosql.rs:28
↓ 86 callers
Function
ws
(inner: F)
src/cosql/common.rs:15
↓ 44 callers
Method
get_collection
Returns the `Collection` by collection's name If not found, None is returned Note that it tried to look up the Collections in the DashMap only and d
src/models/types.rs:1358
↓ 34 callers
Function
write_len
Encode `len` into 1–3 bytes: - 1 byte if < 2⁷ - 2 bytes if < 2¹⁴ - 3 bytes otherwise (uses all 8 bits of the final byte, giving 22 bits total)
src/models/wal.rs:42
↓ 33 callers
Method
try_get_data
(&self, cache: &HNSWIndexCache)
src/models/lazy_item.rs:118
↓ 30 callers
Method
serialize
( &self, dim_bufman: &BufferManager, data_bufmans: &BufferManagerFactory<VersionNumber
src/models/serializer/tree_map/node.rs:17
↓ 27 callers
Method
_get_headers
(self)
tests/rps-test.py:379
↓ 27 callers
Method
add_version
(&mut self, version: u32, data: bool)
org/src/version_tree.rs:97
↓ 27 callers
Method
write_with_cursor
( &self, cursor_id: u64, buf: &[u8], append: bool, )
src/models/buffered_io.rs:321
↓ 26 callers
Method
write_to_end_of_file
(&self, cursor_id: u64, buf: &[u8])
src/models/buffered_io.rs:406
↓ 25 callers
Method
remove
(&self, idx: u8)
src/models/lru_cache.rs:84
↓ 23 callers
Method
flush
(self, root_path: &Path, version: VersionNumber)
src/models/wal.rs:154
↓ 23 callers
Method
read_with_cursor
(&self, cursor_id: u64, buf: &mut [u8])
src/models/buffered_io.rs:253
↓ 23 callers
Method
update_with_cursor
(&self, cursor_id: u64, buf: &[u8])
src/models/buffered_io.rs:317
↓ 22 callers
Method
add
(&mut self, id: u64)
org/src/cuckoo_filter_tree.rs:35
↓ 21 callers
Method
read_u8_with_cursor
(&self, cursor_id: u64)
src/models/buffered_io.rs:239
↓ 21 callers
Method
serialize
( &self, dim_bufman: &BufferManager, data_bufmans: &BufferManagerFactory<VersionNumber
src/models/serializer/tf_idf/term.rs:15
↓ 20 callers
Method
delete
(&self, k: &K)
src/models/common.rs:526
↓ 20 callers
Method
insert
( &self, id: InternalId, pairs: Vec<SparsePair>, version: VersionNumber, )
src/indexes/usv.rs:71
↓ 20 callers
Method
is_empty
(&self)
src/models/atomic_array.rs:87
↓ 20 callers
Method
max
(metric: DistanceMetric)
src/models/types.rs:451
↓ 18 callers
Method
cursor_position
(&self, cursor_id: u64)
src/models/buffered_io.rs:245
↓ 17 callers
Method
read_u16_with_cursor
(&self, cursor_id: u64)
src/models/buffered_io.rs:233
↓ 17 callers
Function
write_len
Encode `len` into 1–3 bytes: - 1 byte if < 2⁷ - 2 bytes if < 2¹⁴ - 3 bytes otherwise (uses all 8 bits of the final byte, giving 22 bits total)
src/models/serializer/mod.rs:26
↓ 16 callers
Method
get_id
(&self)
src/models/prob_node.rs:199
↓ 16 callers
Method
min
(metric: DistanceMetric)
src/models/types.rs:438
↓ 16 callers
Method
ok
(self, name)
tests/test-key-value-store.py:102
↓ 15 callers
Method
serialize
( &self, dim_bufman: &BufferManager, data_bufmans: &BufferManagerFactory<VersionNumber
src/models/serializer/inverted/data.rs:15
↓ 15 callers
Function
setup_test
()
src/models/serializer/tree_map/tests.rs:20
↓ 15 callers
Method
update_collection_for_query
(&self, name: &str)
src/app_context.rs:57
↓ 14 callers
Function
create_tmp_file
Test util function to create a temp file of size calculated from `num_regions` and `extra` bytes after that. E.g. `create_tmp_file(5, 20)` will creat
src/models/buffered_io.rs:860
↓ 14 callers
Method
get_path
creates a path out of the collection name
src/models/collection.rs:330
↓ 14 callers
Method
read_f32_with_cursor
(&self, cursor_id: u64)
src/models/buffered_io.rs:203
↓ 14 callers
Method
to_list
(&self)
src/models/common.rs:692
↓ 13 callers
Function
calculate_path
Calculates the path from `current_dim_index` to `target_dim_index`. Decomposes the difference into powers of 4 and returns the indices.
src/models/utils.rs:13
↓ 13 callers
Method
search
( &self, collection: &Collection, query: Self::SearchInput, options: &Self::Se
src/indexes/mod.rs:250
↓ 13 callers
Method
update_u64_with_cursor
(&self, cursor_id: u64, value: u64)
src/models/buffered_io.rs:297
↓ 12 callers
Method
contains
(&self, id: u64)
org/src/cuckoo_filter_tree.rs:39
↓ 12 callers
Method
fail
(self, name, expected, actual)
tests/test-key-value-store.py:106
↓ 12 callers
Method
flush_all
(&self)
src/models/buffered_io.rs:131
↓ 12 callers
Function
generate_headers
()
tests/load-test.py:25
↓ 12 callers
Method
hash_key
(&self, k: &K)
src/models/common.rs:514
↓ 12 callers
Function
lookup
(name, key)
tests/test-key-value-store.py:80
↓ 12 callers
Method
pop
(&mut self)
src/models/sparse_ann_query.rs:342
↓ 12 callers
Method
update_u8_with_cursor
(&self, cursor_id: u64, value: u8)
src/models/buffered_io.rs:312
↓ 12 callers
Method
values
(&self)
src/models/lru_cache.rs:340
↓ 11 callers
Function
cosine_similarity
(v1: &Vector, v2: &Vector)
org/src/cluster_hierarchy.rs:327
↓ 11 callers
Function
file_offset
(region: usize, region_offset: usize)
src/models/buffered_io.rs:876
↓ 11 callers
Function
generate_headers
()
tests/rps-test.py:26
↓ 11 callers
Method
get_hnsw_index
(&self)
src/models/collection.rs:375
↓ 11 callers
Method
get_latest
(&self, quotient: u64)
src/models/tree_map.rs:318
↓ 10 callers
Method
get
(&self, key: K)
src/models/buffered_io.rs:112
↓ 10 callers
Method
get_inverted_index
(&self)
src/models/collection.rs:379
↓ 10 callers
Function
is_filter_json
Creates the JSON dictionary for a Filter::Is variant.
tests/test_metadata_filters.py:222
↓ 10 callers
Method
is_indexing
(&self)
src/models/collection.rs:312
↓ 10 callers
Method
peek
(&self)
src/models/sparse_ann_query.rs:346
↓ 10 callers
Method
pre_commit_transaction
( &self, collection: &Collection, version: VersionNumber, config: &Config,
src/indexes/mod.rs:143
↓ 10 callers
Function
upsert
(name, txn_id, key: str, value: str)
tests/test-key-value-store.py:65
↓ 9 callers
Function
api_info
()
src/api/openapi.rs:3
↓ 9 callers
Function
count_ones_simd_avx2_256i
(input: __m256i)
src/models/dot_product/x86_64.rs:190
↓ 9 callers
Method
get_or_create_region
(&self, position: u64)
src/models/buffered_io.rs:189
↓ 9 callers
Method
get_tf_idf_index
(&self)
src/models/collection.rs:383
↓ 9 callers
Function
make_predicate_json
Creates the JSON dictionary for a Predicate.
tests/test_metadata_filters.py:213
↓ 9 callers
Method
quantize
(&self, value: f32, values_upper_bound: f32)
src/models/usv_index.rs:241
↓ 9 callers
Method
read_u64_with_cursor
(&self, cursor_id: u64)
src/models/buffered_io.rs:221
↓ 9 callers
Function
run_in_txn
Helper to run operations in a transaction with auto-commit/abort
tests/test-key-value-store.py:125
↓ 9 callers
Method
update_collection_for_transaction
(&self, name: &str)
src/app_context.rs:53
↓ 9 callers
Method
with_value
(&self, k: &K, f: F)
src/models/common.rs:647
↓ 8 callers
Function
create_tmp_file_of_size
Test util function to create a temp file of a specific size
src/models/buffered_io.rs:870
↓ 8 callers
Method
embed
(self, texts: List[str], max_retries: int = 3)
tests/modal_remote_vllm/remote_cache_dense.py:212
↓ 8 callers
Function
generate_headers
()
tests/test_metadata_filters.py:54
↓ 8 callers
Method
get_or_create
(&self, k: K, f: F)
src/models/common.rs:555
↓ 8 callers
Function
get_tokenizer
Get tokenizer instance, loading it lazily.
tests/modal_remote_vllm/remote_cache_dense.py:49
↓ 8 callers
Method
insert
Inserts an entry into the cache Note that if the entry is already present in cache, it will be overwritten
src/models/lru_cache.rs:226
↓ 8 callers
Function
random_string
(len: usize)
src/models/durable_wal.rs:179
↓ 8 callers
Function
random_string
(len: usize)
src/models/wal.rs:393
↓ 8 callers
Function
setup_test
()
src/models/serializer/tf_idf/tests.rs:31
↓ 7 callers
Method
cmp
(&self, other: &Self)
src/models/types.rs:405
↓ 7 callers
Function
delete
Route: `/vectordb/{database_name}/transactions/{transaction_id}/delete`
src/api/vectordb/transactions/delete.rs:5
↓ 7 callers
Method
find_or_create_node
(&self, path: &[u8])
src/models/tree_map.rs:296
↓ 7 callers
Method
get_child
(&self)
src/models/prob_node.rs:191
↓ 7 callers
Function
get_collections_path
()
src/models/types.rs:1594
↓ 7 callers
Method
get_raw_emb_by_internal_id
Returns the raw embedding mapped to an internal id It's recommended to call this method instead of directly accessing the 'internal_to_external' fiel
src/models/collection.rs:405
↓ 7 callers
Method
index_embeddings
( &self, embeddings: Vec<RawVectorEmbedding>, version: VersionNumber, config:
src/models/collection.rs:476
↓ 7 callers
Method
key
(&self)
src/models/tree_map.rs:27
↓ 7 callers
Method
key
(&self)
src/models/types.rs:280
next →
1–100 of 1,701, ranked by callers