I reviewed the documentation for KeySelector, and here are my initial thoughts:
I'd like a src/clj_fdb/keyselector.clj file which contains simple wrapper functions over com.apple.foundationdb.KeySelector. These should simply take a byte-array key as input and call the underlying Java functions. This is similar to what I've done in src/clj_fdb/transaction.clj
first-greater-than
first-greater-or-equal
last-less-or-equal
last-less-than
I'd like equivalents for these same 4 functions in src/clj_fdb/core.clj which accept a k and a keyfn argument and return an instance of KeySelector. The default for keyfn would be bs/to-byte-array.
Please refer to src/clj_fdb/transaction.clj, src/clj_fdb/core.clj and README.md to get a feel for how the library is structured.
I reviewed the documentation for KeySelector, and here are my initial thoughts:
src/clj_fdb/keyselector.clj
file which contains simple wrapper functions overcom.apple.foundationdb.KeySelector
. These should simply take a byte-array key as input and call the underlying Java functions. This is similar to what I've done insrc/clj_fdb/transaction.clj
src/clj_fdb/core.clj
which accept ak
and akeyfn
argument and return an instance of KeySelector. The default forkeyfn
would bebs/to-byte-array
.Please refer to
src/clj_fdb/transaction.clj
,src/clj_fdb/core.clj
andREADME.md
to get a feel for how the library is structured.This issue duplicates #7
Javadocs for Reference