io.permazen.kv.lmdb.ByteArrayLMDBKVTransaction 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 org.lmdbjava.Dbi;
import org.lmdbjava.Env;
import org.lmdbjava.Txn;
/**
* {@link LMDBKVTransaction} using {@code byte[]} arrays buffers.
*/
public class ByteArrayLMDBKVTransaction extends LMDBKVTransaction {
/**
* Constructor.
*
* @param kvdb associated database
* @param env environment
* @param db database handle
*/
protected ByteArrayLMDBKVTransaction(LMDBKVDatabase kvdb, Env env, Dbi db) {
super(kvdb, env, db);
}
@Override
protected ByteArrayLMDBKVStore createKVStore(Dbi db, Txn tx) {
return new ByteArrayLMDBKVStore(db, tx);
}
}