Liking cljdoc? Tell your friends :D

hive-milvus.collection.ensure

L3 — ICollectionEnsure impl. Idempotent collection creation with dim-check.

Wraps the imperative hive-milvus.store.index/ensure-collection! in the Result railway and adds an in-process dim-registry that rejects re-ensures requesting a different dimension for the same collection name, surfacing a dim mismatch at ensure! time rather than at the first failing upsert.

L3 — `ICollectionEnsure` impl. Idempotent collection creation with
dim-check.

Wraps the imperative `hive-milvus.store.index/ensure-collection!`
in the Result railway and adds an in-process dim-registry that
rejects re-ensures requesting a different dimension for the same
collection name, surfacing a dim mismatch at `ensure!` time rather
than at the first failing upsert.
raw docstring

ensure-with-checkclj

(ensure-with-check ref)

Pure-ish core (the registry read + write are atom ops; the actual Milvus call is via create-now!). Exposed for unit tests so the dim-check policy can be exercised without spinning up Milvus.

Pure-ish core (the registry read + write are atom ops; the actual
Milvus call is via `create-now!`). Exposed for unit tests so the
dim-check policy can be exercised without spinning up Milvus.
sourceraw docstring

make-ensureclj

(make-ensure)

Construct a DefaultEnsure. No state per record — the dim-registry is process-global since collection identity is server-global.

Construct a `DefaultEnsure`. No state per record — the dim-registry
is process-global since collection identity is server-global.
sourceraw docstring

reset-registry!clj

(reset-registry!)

Test helper — clear the in-process dim registry.

Test helper — clear the in-process dim registry.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close