]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/trace_writer.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / rocksdb / java / rocksjni / trace_writer.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::CompactionFilterFactory.
8
9 #include <jni.h>
10
11 #include "include/org_rocksdb_AbstractTraceWriter.h"
12 #include "rocksjni/trace_writer_jnicallback.h"
13
14 /*
15 * Class: org_rocksdb_AbstractTraceWriter
16 * Method: createNewTraceWriter
17 * Signature: ()J
18 */
19 jlong Java_org_rocksdb_AbstractTraceWriter_createNewTraceWriter(
20 JNIEnv* env, jobject jobj) {
21 auto* trace_writer = new ROCKSDB_NAMESPACE::TraceWriterJniCallback(env, jobj);
22 return reinterpret_cast<jlong>(trace_writer);
23 }