Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
89cb481a
R
rocksdb
项目概览
kvdb
/
rocksdb
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
89cb481a
编写于
4月 22, 2014
作者:
A
Ankit Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix doc
上级
677b0d6d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
java/rocksjni/filter.cc
java/rocksjni/filter.cc
+2
-1
java/rocksjni/portal.h
java/rocksjni/portal.h
+4
-4
未找到文件。
java/rocksjni/filter.cc
浏览文件 @
89cb481a
...
...
@@ -3,7 +3,8 @@
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// This file implements the "bridge" between Java and C++ for rocksdb::Filter.
// This file implements the "bridge" between Java and C++ for
// rocksdb::FilterPolicy.
#include <stdio.h>
#include <stdlib.h>
...
...
java/rocksjni/portal.h
浏览文件 @
89cb481a
...
...
@@ -285,7 +285,7 @@ class IteratorJni {
class
FilterJni
{
public:
// Get the java class id of org.rocksdb.Filter.
// Get the java class id of org.rocksdb.Filter
Policy
.
static
jclass
getJClass
(
JNIEnv
*
env
)
{
static
jclass
jclazz
=
env
->
FindClass
(
"org/rocksdb/Filter"
);
assert
(
jclazz
!=
nullptr
);
...
...
@@ -293,7 +293,7 @@ class FilterJni {
}
// Get the field id of the member variable of org.rocksdb.Filter
// that stores the pointer to rocksdb::
Iterator
.
// that stores the pointer to rocksdb::
FilterPolicy
.
static
jfieldID
getHandleFieldID
(
JNIEnv
*
env
)
{
static
jfieldID
fid
=
env
->
GetFieldID
(
getJClass
(
env
),
"nativeHandle_"
,
"J"
);
...
...
@@ -301,13 +301,13 @@ class FilterJni {
return
fid
;
}
// Get the pointer to rocksdb::Filter.
// Get the pointer to rocksdb::Filter
Policy
.
static
rocksdb
::
FilterPolicy
*
getHandle
(
JNIEnv
*
env
,
jobject
jobj
)
{
return
reinterpret_cast
<
rocksdb
::
FilterPolicy
*>
(
env
->
GetLongField
(
jobj
,
getHandleFieldID
(
env
)));
}
// Pass the rocksdb::Filter pointer to the java side.
// Pass the rocksdb::Filter
Policy
pointer to the java side.
static
void
setHandle
(
JNIEnv
*
env
,
jobject
jobj
,
const
rocksdb
::
FilterPolicy
*
op
)
{
env
->
SetLongField
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录