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

com.jparams.store.index.reducer.Reducer Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package com.jparams.store.index.reducer;

import java.util.List;

import com.jparams.store.index.Element;

/**
 * Reduce all values matching the same key
 *
 * @param  key
 * @param  value
 */
@FunctionalInterface
public interface Reducer
{
    /**
     * Reduce values matched for the same key
     *
     * @param key      key for values
     * @param elements elements to reduce
     */
    void reduce(K key, List> elements);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy