io.permazen.kv.lmdb.ByteArrayLMDBKVDatabase Maven / Gradle / Ivy
/*
* 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);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy