me.vedang.clj-fdb.subspace.subspace

contains?

(contains? s key)

Tests whether the specified key starts with this Subspace’s prefix, indicating that the Subspace logically contains key.

create

(create prefix)(create)

Constructor for a subspace formed with the specified prefix Tuple.

get

(get s t)

Gets a new subspace which is equivalent to this subspace with its prefix Tuple extended by the specified Tuple.

get-key

(get-key s)

Gets the key encoding the prefix used for this Subspace.

pack

(pack s)(pack s t)

Gets the key encoding the prefix used for this Subspace. If a tuple is passed, key encoding is suffixed with passed tuple. If a non-tuple is passed, it is converted to a tuple and used as a suffix.

range

(range s t)(range s)

Gets a Range respresenting all keys strictly in the Subspace.

If a tuple is passed, gets a Range representing all keys in the Subspace strictly starting with the specified Tuple.

unpack

(unpack s key)

Gets the Tuple encoded by the given key, with this Subspace’s prefix Tuple and raw prefix removed.