mapdb 0,2,3,0,0,2,0,6 travis-ci

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.

Star Fork Watch Issue Download
1 month after Apache-2.0

MapDB: database engine

Build Status Maven Central Join the chat at https://gitter.im/jankotek/mapdb

MapDB combines embedded database engine and Java collections. It is free under Apache 2 license. MapDB is flexible and can be used in many roles:

  • Drop-in replacement for Maps, Lists, Queues and other collections.
  • Off-heap collections not affected by Garbage Collector
  • Multilevel cache with expiration and disk overflow.
  • RDBMs replacement with transactions, MVCC, incremental backups etc…
  • Local data processing and filtering. MapDB has utilities to process huge quantities of data in reasonable time.

Hello world

Maven snippet, VERSION is Maven Central

<dependency>
    <groupId>org.mapdb</groupId>
    <artifactId>mapdb</artifactId>
    <version>VERSION</version>
</dependency>

Hello world:

//import org.mapdb.*
DB db = DBMaker.memoryDB().make();
ConcurrentMap map = db.hashMap("map").make();
map.put("something", "here");

You can continue with quick start or refer to the documentation.

Support

More details.

Development

MapDB is written in Kotlin. You will need IntelliJ Idea 15 and newer to edit it.

You can use Maven to build MapDB by issuing command mvn install.

MapDB is extensively unit-tested. By default, only tiny fraction of all tests are executed, so build finishes under 10 minutes. Full test suite has over million test cases and runs for several hours/days. To run full test suite, set -Dmdbtest=1 VM option.

Longer unit tests might require more memory. Use this to increase heap memory assigned to unit tests: -DtestArgLine="-Xmx3G"

By default unit tests are executed in 3 threads. Thread count is controlled by -DtestThreadCount=3 property

On machine with limited memory you can change fork mode so unit test consume less RAM, but run longer: -DtestReuseForks=false

Related Repositories

ckite

ckite

CKite - A JVM implementation of the Raft distributed consensus algorithm written ...

mapdb-hz-offheap

mapdb-hz-offheap

Provides off-heap storage for in-memory datagrid build in Turkey ...

offheapstore-benchmark

offheapstore-benchmark

A simple benchmark of some off heap solutions (BigMemory Go, MapDB, Java Chronic ...

akka-persistence-mapdb

akka-persistence-mapdb

A MapDB based backend for Akka persistence ...

elsa

elsa

Java serialization, faster and space efficient version of ObjectOutputStream ...


Top Contributors

jankotek atoulme shabanovd lpellegr konrade gkorland Addvilz Toilal pdroalves minborg batterseapower civanyp mebigfatguy ajermakovics bonifaido harishreedharan csm sysoev-a kzadorozhny linkerlin fasterdude7 mnavarro-ob mfriedenhagen koa wangpeidong pettermahlen rtreffer RodionGork gitter-badger tquellenberg

Releases

-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-2.0-be zip tar
-   mapdb-renamed-1.0.8 zip tar
-   mapdb-renamed-1.0.6 zip tar
-   mapdb-nounsafe-2.0-b zip tar
-   mapdb-nounsafe-2.0-b zip tar
-   mapdb-nounsafe-2.0-b zip tar
-   mapdb-noassert-2.0-b zip tar
-   mapdb-noassert-2.0-b zip tar
-   mapdb-noassert-2.0-b zip tar
-   mapdb-debug-2.0-beta zip tar
-   mapdb-debug-2.0-beta zip tar
-   mapdb-debug-2.0-beta zip tar
-   mapdb-3.0.2 zip tar
-   mapdb-3.0.1 zip tar
-   mapdb-3.0.0 zip tar
-   mapdb-3.0.0-beta5 zip tar
-   mapdb-3.0.0-beta4 zip tar
-   mapdb-3.0.0-beta3 zip tar
-   mapdb-3.0.0-beta2 zip tar
-   mapdb-3.0.0-beta1 zip tar
-   mapdb-3.0.0-RC2 zip tar