]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/compaction_filter.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.
6 // This file implements the "bridge" between Java and C++ for
7 // rocksdb::CompactionFilter.
11 #include "include/org_rocksdb_AbstractCompactionFilter.h"
12 #include "rocksdb/compaction_filter.h"
14 // <editor-fold desc="org.rocksdb.AbstractCompactionFilter">
17 * Class: org_rocksdb_AbstractCompactionFilter
18 * Method: disposeInternal
21 void Java_org_rocksdb_AbstractCompactionFilter_disposeInternal(
22 JNIEnv
* env
, jobject jobj
, jlong handle
) {
23 auto* cf
= reinterpret_cast<rocksdb::CompactionFilter
*>(handle
);
24 assert(cf
!= nullptr);