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