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 #include <jni.h>
7 
8 #include "include/org_rocksdb_RemoveEmptyValueCompactionFilter.h"
9 #include "utilities/compaction_filters/remove_emptyvalue_compactionfilter.h"
10 
11 /*
12  * Class:     org_rocksdb_RemoveEmptyValueCompactionFilter
13  * Method:    createNewRemoveEmptyValueCompactionFilter0
14  * Signature: ()J
15  */
Java_org_rocksdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0(JNIEnv *,jclass)16 jlong Java_org_rocksdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0(
17     JNIEnv* /*env*/, jclass /*jcls*/) {
18   auto* compaction_filter =
19       new ROCKSDB_NAMESPACE::RemoveEmptyValueCompactionFilter();
20 
21   // set the native handle to our native compaction filter
22   return reinterpret_cast<jlong>(compaction_filter);
23 }
24