Analysis.A1_Total_Unique_Artists_on_Service.Distinct_Artist_Reducer.java Source code

Java tutorial

Introduction

Here is the source code for Analysis.A1_Total_Unique_Artists_on_Service.Distinct_Artist_Reducer.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Analysis.A1_Total_Unique_Artists_on_Service;

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

import java.io.IOException;

/**
 *
 * @author Chintan
 */
public class Distinct_Artist_Reducer extends Reducer<Text, IntWritable, Text, NullWritable> {

    public void reduce(Text key, Iterable<IntWritable> values, Context context)
            throws IOException, InterruptedException {
        context.write(key, NullWritable.get());
    }
}