Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does LevelDB support java?

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/

like image 302
Vivek Avatar asked Jul 21 '11 16:07

Vivek


3 Answers

You can use the https://github.com/fusesource/leveldbjni java library which gives you a Java API to LevelDB via JNI.

There is also a Pure Java implementation of LevelDB available at https://github.com/dain/leveldb

Both the JNI wrapped and pure Java implementation implement the same interface classes so it's really easy to switch between the two.

like image 75
Hiram Chirino Avatar answered Oct 20 '22 01:10

Hiram Chirino


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.

like image 1
gabor Avatar answered Oct 20 '22 00:10

gabor


You can have a try of leveldb-java. This is a pure Java version of LevelDB.

like image 1
lu wei Avatar answered Oct 20 '22 02:10

lu wei