]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / rocksjni / remove_emptyvalue_compactionfilterjni.cc
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.
5
6 #include <jni.h>
7
8 #include "include/org_rocksdb_RemoveEmptyValueCompactionFilter.h"
9 #include "utilities/compaction_filters/remove_emptyvalue_compactionfilter.h"
10
11
12 /*
13 * Class: org_rocksdb_RemoveEmptyValueCompactionFilter
14 * Method: createNewRemoveEmptyValueCompactionFilter0
15 * Signature: ()J
16 */
17 jlong Java_org_rocksdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0(
18 JNIEnv* env, jclass jcls) {
19 auto* compaction_filter =
20 new rocksdb::RemoveEmptyValueCompactionFilter();
21
22 // set the native handle to our native compaction filter
23 return reinterpret_cast<jlong>(compaction_filter);
24 }