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

org.treetank.api.IMetaEntry Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.treetank.api;

import java.io.DataOutput;

import org.treetank.exception.TTIOException;

import com.google.common.hash.Funnel;

/**
 * All entries in the MetaBucket must implement this interface for guaranteeing serialization.
 * This applies to Keys as well as to values.
 * 
 * @author Sebastian Graf, University of Konstanz
 * 
 */
public interface IMetaEntry {

    /**
     * Serializing to given dataput
     * 
     * @param pOutput
     *            to serialize to
     * @throws TTIOException
     */
    void serialize(final DataOutput pOutput) throws TTIOException;

    /**
     * Getting a Funnel for computing guava-based hashes.
     * 
     * @return a Funnel for this {@link IMetaEntry}
     */
    Funnel getFunnel();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy