List of usage examples for org.apache.hadoop.mapreduce Reducer subclass-usage
From source file CardTotalReducer.java
public class CardTotalReducer extends Reducer<Text, IntWritable, Text, IntWritable> { @Override public void reduce(Text key, Iterable<IntWritable> values, Context context) throws IOException, InterruptedException { int sum = 0;
From source file TestBAM.java
final class TestBAMReducer extends org.apache.hadoop.mapreduce.Reducer<Text, SAMRecordWritable, Text, SAMRecordWritable> { @Override protected void reduce(Text key, Iterable<SAMRecordWritable> records, org.apache.hadoop.mapreduce.Reducer<Text, SAMRecordWritable, Text, SAMRecordWritable>.Context ctx)
From source file AllLab_Skeleton.Lab1.WordCount_Reducer.java
/** * * @author Chintan */ public class WordCount_Reducer extends Reducer<Text, IntWritable, Text, IntWritable> { private static int count = 0;
From source file AllLab_Skeleton.Lab2.Lab2Reducer.java
/** * * @author pooja */ public class Lab2Reducer extends Reducer<CompositeKeyWritable, NullWritable, CompositeKeyWritable, NullWritable> {
From source file Analysis.A1_Total_Unique_Artists_on_Service.Distinct_Artist_Reducer.java
/** * * @author Chintan */ public class Distinct_Artist_Reducer extends Reducer<Text, IntWritable, Text, NullWritable> {
From source file Analysis.A2_Top_20_Most_Popular_Artists.Top_20_Most_Popular_Artist_Combiner.java
/** * * @author Chintan */ public class Top_20_Most_Popular_Artist_Combiner extends Reducer<Text, IntWritable, Text, IntWritable> {
From source file Analysis.A2_Top_20_Most_Popular_Artists.Top_20_Most_Popular_Artist_Reducer.java
/** * * @author Chintan */ public class Top_20_Most_Popular_Artist_Reducer extends Reducer<Text, IntWritable, NullWritable, Text> { private TreeMap<Integer, String> top20 = new TreeMap<Integer, String>(Collections.reverseOrder());
From source file Analysis.A3_Total_Users_By_Gender.User_Gender_Count_Reducer.java
/** * * @author Chintan */ public class User_Gender_Count_Reducer extends Reducer<Text, IntWritable, Text, IntWritable> { private IntWritable result = new IntWritable();
From source file Analysis.A4_High_Traffic_Countries.Top_10_Countries_by_User_Traffic_Combiner.java
/** * * @author Chintan */ public class Top_10_Countries_by_User_Traffic_Combiner extends Reducer<Text, IntWritable, Text, IntWritable> { public IntWritable total = new IntWritable();
From source file Analysis.A4_High_Traffic_Countries.Top_10_Countries_by_User_Traffic_Reducer.java
/** * * @author Chintan */ public class Top_10_Countries_by_User_Traffic_Reducer extends Reducer<Text, IntWritable, Text, IntWritable> { private TreeMap<Integer, String> top10 = new TreeMap<Integer, String>(Collections.reverseOrder());