changeset 595: |
ab579a19f4ef |
parent 594: |
5bd0eb9fa1fa |
child 596: |
46e9425cf3c2 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Wed, 14 Aug 2024 22:13:27 -0400 |
files: |
lisp/ffi/rocksdb/compaction.lisp lisp/ffi/rocksdb/comparator.lisp |
description: |
docs |
1.1--- a/lisp/ffi/rocksdb/compaction.lisp Wed Aug 14 21:49:56 2024 -0400
1.2+++ b/lisp/ffi/rocksdb/compaction.lisp Wed Aug 14 22:13:27 2024 -0400
1.3@@ -1,6 +1,14 @@
1.4 ;;; rocksdb/compaction.lisp --- RocksDB Compaction
1.5
1.6-;;
1.7+;; RocksDB Lisp Compaction Filter API
1.8+
1.9+;;; Commentary:
1.10+
1.11+;; compaction filters are like custom GC rules for the database. compactions
1.12+;; run in the background and can be configured via the column-family-options
1.13+;; or compactionfilterfactory API.
1.14+
1.15+;; ref: https://github.com/facebook/rocksdb/wiki/Compaction-Filter
1.16
1.17 ;;; Code:
1.18 (in-package :rocksdb)
2.1--- a/lisp/ffi/rocksdb/comparator.lisp Wed Aug 14 21:49:56 2024 -0400
2.2+++ b/lisp/ffi/rocksdb/comparator.lisp Wed Aug 14 22:13:27 2024 -0400
2.3@@ -2,6 +2,18 @@
2.4
2.5 ;; RocksDB Lisp Comparator API
2.6
2.7+;;; Commentary:
2.8+
2.9+;; ref: https://github.com/facebook/rocksdb/blob/main/include/rocksdb/comparator.h
2.10+#|
2.11+// Three-way comparison. Returns value:
2.12+// < 0 iff "a" < "b",
2.13+// == 0 iff "a" == "b",
2.14+// > 0 iff "a" > "b"
2.15+// Note that Compare(a, b) also compares timestamp if timestamp size is
2.16+// non-zero. For the same user key with different timestamps, larger (newer)
2.17+// timestamp comes first.
2.18+|#
2.19 ;;; Code:
2.20 (in-package :rocksdb)
2.21