]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactionStyle.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
11 * RocksDB supports different styles of compaction. Available
12 * compaction styles can be chosen using this enumeration.
15 * <li><strong>LEVEL</strong> - Level based Compaction style</li>
16 * <li><strong>UNIVERSAL</strong> - Universal Compaction Style is a
17 * compaction style, targeting the use cases requiring lower write
18 * amplification, trading off read amplification and space
20 * <li><strong>FIFO</strong> - FIFO compaction style is the simplest
21 * compaction strategy. It is suited for keeping event log data with
22 * very low overhead (query log for example). It periodically deletes
23 * the old data, so it's basically a TTL compaction style.</li>
27 * href="https://github.com/facebook/rocksdb/wiki/Universal-Compaction">
28 * Universal Compaction</a>
30 * href="https://github.com/facebook/rocksdb/wiki/FIFO-compaction-style">
33 public enum CompactionStyle
{
38 private final byte value_
;
40 private CompactionStyle(byte value
) {
45 * Returns the byte value of the enumerations value
47 * @return byte representation
49 public byte getValue() {