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> {
CassandraCompactionFilter(boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds)13   public CassandraCompactionFilter(boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds) {
14     super(createNewCassandraCompactionFilter0(purgeTtlOnExpiration, gcGracePeriodInSeconds));
15   }
16 
createNewCassandraCompactionFilter0( boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds)17   private native static long createNewCassandraCompactionFilter0(
18       boolean purgeTtlOnExpiration, int gcGracePeriodInSeconds);
19 }
20