Coverage report: /home/ellis/comp/core/ffi/rocksdb/comparator.lisp
Kind | Covered | All | % |
expression | 0 | 16 | 0.0 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; rocksdb/comparator.lisp --- RocksDB Comparators
3
;; RocksDB Lisp Comparator API
7
;; ref: https://github.com/facebook/rocksdb/blob/main/include/rocksdb/comparator.h
10
Three-way comparison. Returns value:
14
Note that Compare(a, b) also compares timestamp if timestamp size is
15
non-zero. For the same user key with different timestamps, larger (newer)
16
timestamp comes first.
22
(define-alien-type rocksdb-compare-function
30
(define-alien-type rocksdb-compare-ts-function
38
(define-alien-type rocksdb-compare-without-ts-function
48
(defar rocksdb-comparator-create (* rocksdb-comparator)
50
(destructor (* rocksdb-destructor-function))
51
(compare (* rocksdb-compare-function))
52
(name (* rocksdb-name-function)))
54
(defar rocksdb-comparator-destroy void (self (* rocksdb-comparator)))
56
(defar rocksdb-comparator-with-ts-create (* rocksdb-comparator)
58
(destructor (* rocksdb-destructor-function))
59
(compare (* rocksdb-compare-function))
60
(compare-ts (* rocksdb-compare-ts-function))
61
(compare-without-ts (* rocksdb-compare-without-ts-function))
62
(name (* rocksdb-name-function)))
64
(define-alien-callable rocksdb-compare-never-name c-string () (make-alien-string "compare-never"))
66
(define-alien-callable rocksdb-compare-never int
72
(declare (ignore state a alen b blen))
75
(define-alien-callable rocksdb-compare-never-with-ts int
81
(declare (ignore state a alen b blen))
84
(define-alien-callable rocksdb-compare-never-without-ts int
92
(declare (ignore state a alen a-ts b blen b-ts))