QdrantEdgeBindings class
FFI bindings for the qdrant-edge FFI shim (qe_* functions).
Constructors
- QdrantEdgeBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
QdrantEdgeBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
qe_shard_close(
Pointer< Void> shard) → void - Close shard. Frees all resources. Safe to call with NULL.
-
qe_shard_count(
Pointer< Void> shard, Pointer<Pointer< error_out) → intChar> > - Exact total point count. Returns count >= 0 on success, -1 on error.
-
qe_shard_delete(
Pointer< Void> shard, Pointer<Char> ids_json, Pointer<Pointer< error_out) → intChar> > -
Delete points by IDs.
ids_jsonis a JSON array of strings. -
qe_shard_open(
Pointer< Char> path, int dim, Pointer<Char> distance, Pointer<Pointer< error_out) → Pointer<Char> >Void> -
Open or create a shard at
pathwith the given vector dimension and distance metric. -
qe_shard_search(
Pointer< Void> shard, Pointer<Float> vector, int vector_len, int top_k, Pointer<Pointer< response_json_out, Pointer<Char> >Pointer< error_out) → intChar> > - Top-K nearest-neighbor search.
-
qe_shard_search_with_filter(
Pointer< Void> shard, Pointer<Float> vector, int vector_len, int top_k, Pointer<Char> filter_json, Pointer<Pointer< response_json_out, Pointer<Char> >Pointer< error_out) → intChar> > - Top-K search with a qdrant-edge filter.
-
qe_shard_upsert(
Pointer< Void> shard, Pointer<Char> id, Pointer<Float> vector, int vector_len, Pointer<Char> payload_json, Pointer<Pointer< error_out) → intChar> > - Upsert a single point.
-
qe_shard_upsert_batch(
Pointer< Void> shard, Pointer<Char> points_json, Pointer<Pointer< error_out) → intChar> > -
Bulk upsert.
points_jsonis a JSON array of{"id": "<id>", "vector": [f32...], "payload": {...} | null}objects. -
qe_string_free(
Pointer< Char> s) → void -
Free any string returned by the shim through a
char **out-parameter or thechar *return ofqe_version. Safe to call with NULL. -
qe_version(
) → Pointer< Char> -
Returns shim version string. Caller must free with
qe_string_free. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited