]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/CassandraCompactionFilter.java
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / CassandraCompactionFilter.java
1 // Copyright (c) 2017-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).
5
6 package org.rocksdb;
7
8 /**
9 * Just a Java wrapper around CassandraCompactionFilter implemented in C++
10 */
11 public class CassandraCompactionFilter
12 extends AbstractCompactionFilter<Slice> {
13 public CassandraCompactionFilter(boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds) {
14 super(createNewCassandraCompactionFilter0(purgeTtlOnExpiration, gcGracePeriodInSeconds));
15 }
16
17 private native static long createNewCassandraCompactionFilter0(
18 boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds);
19 }