]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactionOptionsFIFO.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
9 * Options for FIFO Compaction
11 public class CompactionOptionsFIFO
extends RocksObject
{
13 public CompactionOptionsFIFO() {
14 super(newCompactionOptionsFIFO());
18 * Once the total sum of table files reaches this, we will delete the oldest
23 * @param maxTableFilesSize The maximum size of the table files
25 * @return the reference to the current options.
27 public CompactionOptionsFIFO
setMaxTableFilesSize(
28 final long maxTableFilesSize
) {
29 setMaxTableFilesSize(nativeHandle_
, maxTableFilesSize
);
34 * Once the total sum of table files reaches this, we will delete the oldest
39 * @return max table file size in bytes
41 public long maxTableFilesSize() {
42 return maxTableFilesSize(nativeHandle_
);
45 private native void setMaxTableFilesSize(long handle
, long maxTableFilesSize
);
46 private native long maxTableFilesSize(long handle
);
48 private native static long newCompactionOptionsFIFO();
49 @Override protected final native void disposeInternal(final long handle
);