LevelDB 支持 java 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6779669/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does LevelDB support java?
提问by Vivek
I want to know if LevelDB supports java ? Where can i get the LevelDB. There are no files under http://code.google.com/p/leveldb/
我想知道 LevelDB 是否支持 java ?我在哪里可以获得 LevelDB。http://code.google.com/p/leveldb/下没有文件
回答by Hiram Chirino
You can use the https://github.com/fusesource/leveldbjnijava library which gives you a Java API to LevelDB via JNI.
您可以使用https://github.com/fusesource/leveldbjnijava 库,它通过 JNI 为您提供到 LevelDB 的 Java API。
There is also a Pure Java implementation of LevelDB available at https://github.com/dain/leveldb
在https://github.com/dain/leveldb 上还有一个 LevelDB 的纯 Java 实现
Both the JNI wrapped and pure Java implementation implement the same interface classes so it's really easy to switch between the two.
JNI 包装和纯 Java 实现都实现了相同的接口类,因此在两者之间切换非常容易。
回答by gabor
LevelDB currently does not ship with JNI bindings, but you can wrap your own JNI binding around the file db/c.h via SWIG and the like.
LevelDB 当前不附带 JNI 绑定,但您可以通过 SWIG 等将您自己的 JNI 绑定包装在文件 db/ch 周围。
回答by lu wei
You can have a try of leveldb-java. This is a pure Java version of LevelDB.
你可以试试leveldb-java。这是 LevelDB 的纯 Java 版本。
回答by Dan D.
From looking at the source, i can say that it doesn't support java.
从查看源代码来看,我可以说它不支持java。
For the source use svn checkout http://leveldb.googlecode.com/svn/trunk/leveldb-read-only
对于源使用 svn checkout http://leveldb.googlecode.com/svn/trunk/leveldb-read-only