com.ebay.erl.mobius.core.mapred
Class TotalSortReducer

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by com.ebay.erl.mobius.core.datajoin.DataJoinReducer<Tuple,Tuple,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.WritableComparable<?>>
          extended by com.ebay.erl.mobius.core.mapred.DefaultMobiusReducer
              extended by com.ebay.erl.mobius.core.mapred.TotalSortReducer
All Implemented Interfaces:
java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<DataJoinKey,DataJoinValue,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.WritableComparable<?>>

public class TotalSortReducer
extends DefaultMobiusReducer

Reducer for mobius total sort job.

This product is licensed under the Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0. This product contains portions derived from Apache hadoop which is licensed under the Apache License, Version 2.0, available at http://hadoop.apache.org. © 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan


Field Summary
 
Fields inherited from class com.ebay.erl.mobius.core.mapred.DefaultMobiusReducer
_persistantCriteria, _projections, isOuterJoin, multiDatasetExtendFunction, multiDatasetGroupFunction, nullReplacement, outputColumnNames, reporterSet, requirePreCrossProduct, singleDatasetExtendFunction, singleDatasetExtendFunResult, singleDatasetGroupFunction, valuesForAllDatasets
 
Constructor Summary
TotalSortReducer()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf conf)
           
 void joinreduce(Tuple key, DataJoinValueGroup<Tuple> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.WritableComparable<?>> output, org.apache.hadoop.mapred.Reporter reporter)
          reduce()
 
Methods inherited from class com.ebay.erl.mobius.core.mapred.DefaultMobiusReducer
getSchemaByDatasetID
 
Methods inherited from class com.ebay.erl.mobius.core.datajoin.DataJoinReducer
reduce
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

TotalSortReducer

public TotalSortReducer()
Method Detail

configure

public void configure(org.apache.hadoop.mapred.JobConf conf)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable
Overrides:
configure in class DefaultMobiusReducer

joinreduce

public void joinreduce(Tuple key,
                       DataJoinValueGroup<Tuple> values,
                       org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.WritableComparable<?>> output,
                       org.apache.hadoop.mapred.Reporter reporter)
                throws java.io.IOException
reduce()

Output key is NullWritable and output value is Tuple

Overrides:
joinreduce in class DefaultMobiusReducer
Throws:
java.io.IOException