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