Liking cljdoc? Tell your friends :D

merkle-db.key

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.
raw docstring

after?clj

(after? k x)

Returns true if k is ranked after x.

Returns true if `k` is ranked after `x`.
raw docstring

before?clj

(before? k x)

Returns true if k is ranked before x.

Returns true if `k` is ranked before `x`.
raw docstring

bytes-lexicoderclj

Lexicoder for passing through raw byte arrays.

Lexicoder for passing through raw byte arrays.
raw docstring

createclj

(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.
raw docstring

decodeclj

(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.
raw docstring

encodeclj

(encode coder value)

Encodes the given value and returns persistent key bytes.

Encodes the given value and returns persistent key bytes.
raw docstring

float-lexicoderclj

Lexicoder for double-precision floating point values.

Lexicoder for double-precision floating point values.
raw docstring

get-bytesclj

(get-bytes k)

Return a copy of the raw bytes inside a key.

Return a copy of the raw bytes inside a key.
raw docstring

hexclj

(hex k)

Return a hexadecimal string encoding the bytes in the key.

Return a hexadecimal string encoding the bytes in the key.
raw docstring

instant-lexicoderclj

Lexicoder for instants in time.

Lexicoder for instants in time.
raw docstring

integer-lexicoderclj

Lexicoder for long integer values.

Lexicoder for long integer values.
raw docstring

key?clj

(key? x)

Predicate which returns true if x is a key value.

Predicate which returns true if `x` is a key value.
raw docstring

lexicodercljmultimethod

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.
raw docstring

maxclj

(max x)
(max x y)
(max x y & more)

Returns the greatest of the given keys.

Returns the greatest of the given keys.
raw docstring

minclj

(min x)
(min x y)
(min x y & more)

Returns the least of the given keys.

Returns the least of the given keys.
raw docstring

parseclj

(parse s)

Parse a key from a hexadecimal string.

Parse a key from a hexadecimal string.
raw docstring

reverse-lexicoderclj

(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.
raw docstring

sequence-lexicoderclj

(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.
raw docstring

string-lexicoderclj

Lexicoder for UTF-8 character strings.

Lexicoder for UTF-8 character strings.
raw docstring

string-lexicoder*clj

(string-lexicoder* charset)

Constructs a new string lexicoder with the given charset.

Constructs a new string lexicoder with the given charset.
raw docstring

tuple-lexicoderclj

(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.
raw docstring

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

× close