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

com.indeed.mph.KeyValidator Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.indeed.mph;

import java.io.Serializable;

/**
 * A validator used when looking up entries.  Given the inputKey,
 * assuming it has a known hash value we will extract an optional key
 * and value, and it's the job of the validator to return the correct
 * value, or null if this was not a known key.
 *
 * For example, the default {@link EqualKeyValidator} used by
 * {@link TableWriter} just checks that the keys are equal and
 * if so returns the extractedValue.
 *
 * @author alexs
 */
public interface KeyValidator extends Serializable {
    V validate(K inputKey, K extractedKey, V extractedValue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy