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

edu.isi.nlp.files.KeyValueSink Maven / Gradle / Ivy

The newest version!
package edu.isi.nlp.files;

import java.io.IOException;

/**
 * Something which accepts key value pairs. Typically this will write to some data store which can
 * later be opened as a {@link KeyValueSource}, but this is not required.
 *
 * 

Some standard implementations are provided in {@link KeyValueSinks}. * * @param type of the key * @param type of the value * @author Constantine Lignos, Ryan Gabbard */ public interface KeyValueSink extends AutoCloseable { /** Put the specified key and value. */ void put(K key, V value) throws IOException; // This override is necessary to change the exception signature from Exception @Override void close() throws IOException; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy