]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/compaction_filter.cc
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / rocksjni / compaction_filter.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 // This file implements the "bridge" between Java and C++ for
7 // rocksdb::CompactionFilter.
8
9 #include <jni.h>
10
11 #include "include/org_rocksdb_AbstractCompactionFilter.h"
12 #include "rocksdb/compaction_filter.h"
13
14 // <editor-fold desc="org.rocksdb.AbstractCompactionFilter">
15
16 /*
17 * Class: org_rocksdb_AbstractCompactionFilter
18 * Method: disposeInternal
19 * Signature: (J)V
20 */
21 void Java_org_rocksdb_AbstractCompactionFilter_disposeInternal(
22 JNIEnv* env, jobject jobj, jlong handle) {
23 auto* cf = reinterpret_cast<rocksdb::CompactionFilter*>(handle);
24 assert(cf != nullptr);
25 delete cf;
26 }
27 // </editor-fold>