]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/java/rocksjni/table_filter.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / java / rocksjni / table_filter.cc
CommitLineData
494da23a
TL
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// org.rocksdb.AbstractTableFilter.
8
9#include <jni.h>
1e59de90 10
494da23a
TL
11#include <memory>
12
13#include "include/org_rocksdb_AbstractTableFilter.h"
1e59de90 14#include "rocksjni/cplusplus_to_java_convert.h"
494da23a
TL
15#include "rocksjni/table_filter_jnicallback.h"
16
17/*
18 * Class: org_rocksdb_AbstractTableFilter
19 * Method: createNewTableFilter
20 * Signature: ()J
21 */
22jlong Java_org_rocksdb_AbstractTableFilter_createNewTableFilter(
23 JNIEnv* env, jobject jtable_filter) {
24 auto* table_filter_jnicallback =
f67539c2 25 new ROCKSDB_NAMESPACE::TableFilterJniCallback(env, jtable_filter);
1e59de90 26 return GET_CPLUSPLUS_POINTER(table_filter_jnicallback);
f67539c2 27}