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

com.github.jnthnclt.os.lab.collections.bah.BAH Maven / Gradle / Ivy

There is a newer version: 1.12.2
Show newest version
package com.github.jnthnclt.os.lab.collections.bah;

import com.github.jnthnclt.os.lab.collections.KeyValueStream;
import java.util.concurrent.Semaphore;

/**
 * @author jonathan.colt
 */
public interface BAH {

    void clear();

    V get(byte[] key, int keyOffset, int keyLength);

    V get(long hashCode, byte[] key, int keyOffset, int keyLength);

    void put(byte[] key, V value);

    @SuppressWarnings(value = "unchecked")
    void put(long hashCode, byte[] key, V value);

    void remove(byte[] key, int keyOffset, int keyLength);

    @SuppressWarnings(value = "unchecked")
    void remove(long hashCode, byte[] key, int keyOffset, int keyLength);

    long size();

    boolean stream(Semaphore semaphore, KeyValueStream stream) throws Exception;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy