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

org.infinispan.distexec.mapreduce.Reducer Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.distexec.mapreduce;

import org.infinispan.Cache;
import org.infinispan.CacheSet;

import java.io.Serializable;
import java.util.Iterator;

/**
 * Reduces intermediate key/value results from map phase of MapReduceTask. Infinispan distributed
 * execution environment uses one instance of Reducer per execution node.
 * 
 * 
 * @see Mapper
 * @see MapReduceTask
 * 
 * @author Manik Surtani
 * @author Vladimir Blagojevic
 * @author Sanne Grinovero
 * 
 * @since 5.0
 * @deprecated Map reduce is being replaced by Streams
 * @see Cache#entrySet()
 * @see CacheSet#stream()
 */
public interface Reducer extends Serializable {

   /**
    * Combines/reduces all intermediate values for a particular intermediate key to a single value.
    * 

* */ VOut reduce(KOut reducedKey, Iterator iter); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy