List of usage examples for org.apache.hadoop.mapreduce Mapper subclass-usage
From source file clustering.mst.ChildMapper.java
/**
* Mapper to calculate a local mst.
*
* @author edwardlol
* Created by edwardlol on 17-4-26.
*/
From source file clustering.mst.FinalMapper.java
/**
* Mapper class for the mst final step.
* Convert the input weight to {@link DoubleWritable}
* so that the reducer will receive edges sorted by their weight.
*
* @author edwardlol
From source file clustering.simhash.Step1Mapper.java
/**
* Calculate the simhash of every comodity.
*
* @author edwardlol
* Created by edwardlol on 17-4-21.
*/
From source file clustering.simhash.Step2Mapper.java
/**
* Transform input key to IntWritable.
*
* @author edwardlol
* Created by edwardlol on 17-4-25.
*/
From source file clustering.similarity.ISimMapper.java
/**
* Mapper class for the last step of calculating
* distance matrix.
* Read and wrap the data for reducer.
*
* @author edwardlol
From source file clustering.similarity.PreMapper.java
/**
* Devide and distribute the indexes.
* There are two strategies,
* if the index is short, just send it to a container and the container will do a self join;
* if the index is long, I first devide it into {@link this#splitNum} splits.
* The output key consists of two parts: container id and splited flag.
From source file clustering.tf_idf.DocCntMapper.java
/**
* Calculate the socument number of the corpus.
*
* @author edwardlol
* Created by edwardlol on 17-4-24.
*/
From source file clustering.tf_idf.TermCountMapper.java
/**
* Count the terms in each document.
*
* @author edwardlol
* Created by edwardlol on 17-4-24.
*/
From source file clustering.tf_idf.TermFreqMapper.java
/**
* Transform the input format for the Reducer.
*
* @author edwardlol
* Created by edwardlol on 17-4-24.
*/
From source file cn.lhfei.hadoop.ch02.MaxTemperatureMapper.java
/**
* MaxTemperatureMapper Mapper for maximum temperature example.
*
* @version 0.1
*
* @author Hefei Li