]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/wal_filter.cc
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / rocksdb / java / rocksjni / wal_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::WalFilter.
8
9 #include <jni.h>
10
11 #include "include/org_rocksdb_AbstractWalFilter.h"
12 #include "rocksjni/wal_filter_jnicallback.h"
13
14 /*
15 * Class: org_rocksdb_AbstractWalFilter
16 * Method: createNewWalFilter
17 * Signature: ()J
18 */
19 jlong Java_org_rocksdb_AbstractWalFilter_createNewWalFilter(
20 JNIEnv* env, jobject jobj) {
21 auto* wal_filter = new rocksdb::WalFilterJniCallback(env, jobj);
22 return reinterpret_cast<jlong>(wal_filter);
23 }