Record keys are immutable byte sequences which uniquely identify a record within a table. Keys are stored in sorted order by comparing them lexicographically.
The first byte that differs between two keys determines their sort order, with the lower byte value ranking first. If the prefix of the longer key matches all the bytes in the shorter key, the shorter key ranks first.
Record keys are immutable byte sequences which uniquely identify a record within a table. Keys are stored in sorted order by comparing them lexicographically. The first byte that differs between two keys determines their sort order, with the lower byte value ranking first. If the prefix of the longer key matches all the bytes in the shorter key, the shorter key ranks first.
(after? k x)
Returns true if k
is ranked after x
.
Returns true if `k` is ranked after `x`.
(before? k x)
Returns true if k
is ranked before x
.
Returns true if `k` is ranked before `x`.
Lexicoder for passing through raw byte arrays.
Lexicoder for passing through raw byte arrays.
(create data)
Construct a new key value containing the given byte data, which should either be a byte array or a sequence of byte values.
Construct a new key value containing the given byte data, which should either be a byte array or a sequence of byte values.
(decode coder data)
(decode coder data offset len)
Decodes the given key byte data and returns a value.
Decodes the given key byte data and returns a value.
(encode coder value)
Encodes the given value and returns persistent key bytes.
Encodes the given value and returns persistent key bytes.
Lexicoder for double-precision floating point values.
Lexicoder for double-precision floating point values.
(get-bytes k)
Return a copy of the raw bytes inside a key.
Return a copy of the raw bytes inside a key.
(hex k)
Return a hexadecimal string encoding the bytes in the key.
Return a hexadecimal string encoding the bytes in the key.
Lexicoder for long integer values.
Lexicoder for long integer values.
(key? x)
Predicate which returns true if x
is a key value.
Predicate which returns true if `x` is a key value.
Construct a lexicoder from a configuration data structure. The structure should be either a keyword or a vector with the first element a keyword providing the dispatch value.
Construct a lexicoder from a configuration data structure. The structure should be either a keyword or a vector with the first element a keyword providing the dispatch value.
(max x)
(max x y)
(max x y & more)
Returns the greatest of the given keys.
Returns the greatest of the given keys.
(min x)
(min x y)
(min x y & more)
Returns the least of the given keys.
Returns the least of the given keys.
(parse s)
Parse a key from a hexadecimal string.
Parse a key from a hexadecimal string.
(reverse-lexicoder coder)
Wraps the given lexicoder to reverse the ordering of keys encoded with it.
Wraps the given lexicoder to reverse the ordering of keys encoded with it.
(sequence-lexicoder element-coder)
Constructs a lexicoder for homogeneous sequences of elements which will be coded with the given lexicoder.
Constructs a lexicoder for homogeneous sequences of elements which will be coded with the given lexicoder.
Lexicoder for UTF-8 character strings.
Lexicoder for UTF-8 character strings.
(string-lexicoder* charset)
Constructs a new string lexicoder with the given charset.
Constructs a new string lexicoder with the given charset.
(tuple-lexicoder & coders)
Constructs a lexicoder for a fixed-size tuple of values which will be coded with the given lexicoders, in order.
Constructs a lexicoder for a fixed-size tuple of values which will be coded with the given lexicoders, in order.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close