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).
6 // This file implements the callback "bridge" between Java and C++ for
7 // rocksdb::TableFilter.
9 #ifndef JAVA_ROCKSJNI_TABLE_FILTER_JNICALLBACK_H_
10 #define JAVA_ROCKSJNI_TABLE_FILTER_JNICALLBACK_H_
16 #include "rocksdb/table_properties.h"
17 #include "rocksjni/jnicallback.h"
21 class TableFilterJniCallback
: public JniCallback
{
23 TableFilterJniCallback(
24 JNIEnv
* env
, jobject jtable_filter
);
25 std::function
<bool(const rocksdb::TableProperties
&)> GetTableFilterFunction();
28 jmethodID m_jfilter_methodid
;
29 std::function
<bool(const rocksdb::TableProperties
&)> m_table_filter_function
;
34 #endif // JAVA_ROCKSJNI_TABLE_FILTER_JNICALLBACK_H_