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

com.github.ltsopensource.kv.DB Maven / Gradle / Ivy

package com.github.ltsopensource.kv;

import com.github.ltsopensource.kv.iterator.DBIterator;
import com.github.ltsopensource.core.logger.Logger;
import com.github.ltsopensource.core.logger.LoggerFactory;

/**
 * @author Robert HG ([email protected]) on 12/13/15.
 */
public interface DB {

    Logger LOGGER = LoggerFactory.getLogger(DB.class);

    void init() throws DBException;

    int size();

    boolean containsKey(K key);

    V get(K key);

    void put(K key, V value);

    void remove(K key);

    DBIterator> iterator();

    void close();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy