Package mia.clustering.ch12.lastfm

Source Code of mia.clustering.ch12.lastfm.DictionaryReducer

package mia.clustering.ch12.lastfm;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class DictionaryReducer extends Reducer<Text,IntWritable,Text,IntWritable> {
  @Override
  protected void reduce(Text artist,
                        Iterable<IntWritable> values,
                        Context context) throws IOException,
                                        InterruptedException {
    context.write(artist, new IntWritable(0));
  }
}
TOP

Related Classes of mia.clustering.ch12.lastfm.DictionaryReducer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.