aerospike-clj.utils
desanitize-bin-value
(desanitize-bin-value bin-value)
Converts sanitized (keywordized) bin values back to their original value.
sanitize-bin-value
(sanitize-bin-value bin-value)
Values in nested structures are unaffected and do not need to be sanitized. If, however, true
, false
or nil
exist as the only value in a bin, they need to be sanitized.
single-bin?
(single-bin? bin-names)
Predicate function to determine whether data will be stored as a single bin or multiple bin record.
string-keys?
(string-keys? bin-names)
Predicate function to determine whether all keys provided for bins are strings.
v->array
(v->array clazz v)
An optimized way to convert vectors into Java arrays of type clazz
.
vectorize
(vectorize v)
convert a single value to a vector or any collection to the equivalent vector. NOTE: a map or a set have no defined order so vectorize them is not allowed