All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rocksdb.CompactionStyle Maven / Gradle / Ivy

Go to download

RocksDB fat jar to use with Apache Flink that contains .so files for linux32 and linux64, jnilib files for Mac OSX, and a .dll for Windows x64.

There is a newer version: 5.17.2-artisans-2.0
Show newest version
// Copyright (c) 2011-present, Facebook, Inc.  All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.

package org.rocksdb;

/**
 * Enum CompactionStyle
 *
 * RocksDB supports different styles of compaction. Available
 * compaction styles can be chosen using this enumeration.
 *
 * 
    *
  1. LEVEL - Level based Compaction style
  2. *
  3. UNIVERSAL - Universal Compaction Style is a * compaction style, targeting the use cases requiring lower write * amplification, trading off read amplification and space * amplification.
  4. *
  5. FIFO - FIFO compaction style is the simplest * compaction strategy. It is suited for keeping event log data with * very low overhead (query log for example). It periodically deletes * the old data, so it's basically a TTL compaction style.
  6. *
* * @see * Universal Compaction * @see * FIFO Compaction */ public enum CompactionStyle { LEVEL((byte) 0), UNIVERSAL((byte) 1), FIFO((byte) 2); private final byte value_; private CompactionStyle(byte value) { value_ = value; } /** * Returns the byte value of the enumerations value * * @return byte representation */ public byte getValue() { return value_; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy