Liking cljdoc? Tell your friends :D

xitdb.util.conversion


*debug?*clj


coll->ArrayListCursor!clj

(coll->ArrayListCursor! cursor coll)

Converts a Clojure collection to a XitDB ArrayList cursor. Handles nested maps and collections recursively. Returns the cursor of the created WriteArrayList.

Converts a Clojure collection to a XitDB ArrayList cursor.
Handles nested maps and collections recursively.
Returns the cursor of the created WriteArrayList.
raw docstring

database-bytesclj

(database-bytes s)
(database-bytes s tag)

db-keyclj

(db-key k)

Converts k from a Clojure type to a Database$Bytes representation to be used in cursor functions.

Converts k from a Clojure type to a Database$Bytes representation to be used in
cursor functions.
raw docstring

db-key-hashclj

(db-key-hash jdb v)

Returns a byte array representing the stable hash digest of (Clojure) value v. Uses the MessageDigest from the database.

Returns a byte array representing the stable hash digest of (Clojure) value `v`.
Uses the MessageDigest from the database.
raw docstring

false-strclj


fmt-tag-keywordclj

(fmt-tag-keyword v)

fmt-tag-valueclj


keynameclj

(keyname key)

list->LinkedArrayListCursor!clj

(list->LinkedArrayListCursor! cursor coll)

Converts a Clojure list or seq-like collection to a XitDB LinkedArrayList cursor. Optimized for sequential access collections rather than random access ones.

Converts a Clojure list or seq-like collection to a XitDB LinkedArrayList cursor.
Optimized for sequential access collections rather than random access ones.
raw docstring

map->WriteHashMapCursor!clj

(map->WriteHashMapCursor! cursor m)

Writes a Clojure map to a XitDB WriteHashMap. Returns the cursor of the created WriteHashMap.

Writes a Clojure map to a XitDB WriteHashMap.
Returns the cursor of the created WriteHashMap.
raw docstring

primitive-forclj

(primitive-for v)

Converts a Clojure primitive value to its corresponding XitDB representation. Handles strings, keywords, integers, booleans, and floats. Throws an IllegalArgumentException for unsupported types.

Converts a Clojure primitive value to its corresponding XitDB representation.
Handles strings, keywords, integers, booleans, and floats.
Throws an IllegalArgumentException for unsupported types.
raw docstring

read-bytes-with-format-tagclj

(read-bytes-with-format-tag cursor)

set->WriteCursor!clj

(set->WriteCursor! cursor s)

Writes a Clojure set s to a XitDB WriteHashSet. Returns the cursor of the created WriteHashSet.

Writes a Clojure set `s` to a XitDB WriteHashSet.
Returns the cursor of the created WriteHashSet.
raw docstring

true-strclj


v->slot!clj

(v->slot! cursor v)

Converts a value to a XitDB slot. Handles WriteArrayList and WriteHashMap instances directly. Recursively processes Clojure maps and collections. Falls back to primitive conversion for other types.

Converts a value to a XitDB slot.
Handles WriteArrayList and WriteHashMap instances directly.
Recursively processes Clojure maps and collections.
Falls back to primitive conversion for other types.
raw docstring

xit-tag->keywordclj

(xit-tag->keyword tag)

Converts a XitDB Tag enum to a corresponding Clojure keyword.

Converts a XitDB Tag enum to a corresponding Clojure keyword.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close