KalanDB class

A handle to an open, read-only .vdb database.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats KalanDBStats
Database statistics.
no setter

Methods

close() Future<void>
Closes the database and releases native resources.
getChunk(int chunkId) Future<DocumentChunk?>
Fetches a single chunk by id. Returns null if not found.
keywordSearch(String query, {int topK = 10, MetadataFilter? filter}) Future<List<SearchResult>>
Convenience: keyword-only search without a query vector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Hybrid search (default). At least one of queryVector / queryText must be provided.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

open(String path, {KalanDBConfig? config}) Future<KalanDB>
Opens a pre-built .vdb file at path. Validates header + checksum. Throws KalanDBException on failure.