io.permazen.kv.lmdb.ByteArrayLMDBKVDatabase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-kv-lmdb Show documentation
Show all versions of permazen-kv-lmdb Show documentation
Permazen key/value store implementation based on LMDB.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.kv.lmdb;
import java.util.Map;
import org.lmdbjava.ByteArrayProxy;
import org.lmdbjava.Dbi;
import org.lmdbjava.Env;
/**
* {@link LMDBKVDatabase} using {@code byte[]} arrays buffers.
*/
public class ByteArrayLMDBKVDatabase extends LMDBKVDatabase {
public ByteArrayLMDBKVDatabase() {
super(Env.create(ByteArrayProxy.PROXY_BA));
}
@Override
protected ByteArrayLMDBKVTransaction doCreateTransaction(Env env, Dbi db, Map options) {
return new ByteArrayLMDBKVTransaction(this, env, db);
}
}