(db? x)
Returns whether it is an instance of HaloDB.
Returns whether it is an instance of HaloDB.
(get db k)
(get db k f)
Returns a result string of fetching value with given key from the db. If f is specified, f is applied to the result and returns it.
Returns a result string of fetching value with given key from the db. If f is specified, f is applied to the result and returns it.
(get-bytes db k)
(get-bytes db k f)
Returns a result bytes of fetching value with given key from the db. If f is specified, f is applied to the result and returns it.
Returns a result bytes of fetching value with given key from the db. If f is specified, f is applied to the result and returns it.
(open)
(open directory)
(open directory opts)
Returns a new HaloDB instance. The default directory is 'halodb-store'.
Returns a new HaloDB instance. The default directory is 'halodb-store'.
(options)
(options {:keys [compaction-threshold-per-file max-file-size
max-tombstone-file-size flush-data-size-bytes sync-write
number-of-records compaction-job-rate
clean-up-in-memory-index-on-close
clean-up-tombstone-during-open use-memory-pool fixed-key-size
memory-pool-chunk-size build-index-threads]
:as opts})
Returns a new HaloDBOptions instance. The argument opts can contain key-values named as following:
:compaction-threshold-per-file :max-file-size :max-tombstone-file-size :flush-data-size-bytes :sync-write :number-of-records :compaction-job-rate :clean-up-in-memory-index-on-close :clean-up-tombstone-during-open :use-memory-pool :fixed-key-size :memory-pool-chunk-size :build-index-threads
Please refer the official documents of yahoo/HaloDB.
Returns a new HaloDBOptions instance. The argument opts can contain key-values named as following: :compaction-threshold-per-file :max-file-size :max-tombstone-file-size :flush-data-size-bytes :sync-write :number-of-records :compaction-job-rate :clean-up-in-memory-index-on-close :clean-up-tombstone-during-open :use-memory-pool :fixed-key-size :memory-pool-chunk-size :build-index-threads Please refer the official documents of yahoo/HaloDB.
(put db m)
(put db m f)
Put the given map into the db. If f is specified, f is applied to the value before putting.
Put the given map into the db. If f is specified, f is applied to the value before putting.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close