]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/remove_emptyvalue_compactionfilterjni.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.
8 #include "include/org_rocksdb_RemoveEmptyValueCompactionFilter.h"
9 #include "utilities/compaction_filters/remove_emptyvalue_compactionfilter.h"
13 * Class: org_rocksdb_RemoveEmptyValueCompactionFilter
14 * Method: createNewRemoveEmptyValueCompactionFilter0
17 jlong
Java_org_rocksdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0(
18 JNIEnv
* env
, jclass jcls
) {
19 auto* compaction_filter
=
20 new rocksdb::RemoveEmptyValueCompactionFilter();
22 // set the native handle to our native compaction filter
23 return reinterpret_cast<jlong
>(compaction_filter
);