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.
(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.
(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.
(reset-registry!)Test helper — clear the in-process dim registry.
Test helper — clear the in-process dim registry.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |