All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.kv.lmdb.ByteArrayLMDBKVTransaction Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy