ivory.lsh.projection
Class ComputeSignaturesMinhash.MyMapper
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
ivory.lsh.projection.ComputeSignaturesMinhash.MyMapper
- All Implemented Interfaces:
- Closeable, JobConfigurable, Mapper<IntWritable,WeightedIntDocVector,IntWritable,MinhashSignature>
- Enclosing class:
- ComputeSignaturesMinhash
public static class ComputeSignaturesMinhash.MyMapper
- extends MapReduceBase
- implements Mapper<IntWritable,WeightedIntDocVector,IntWritable,MinhashSignature>
Signatures are created in a sequence of MyMapper calls. Each call appends SIZE_OF_FILE bits to
each signature, until the size reaches D.
- Author:
- ferhanture
ComputeSignaturesMinhash.MyMapper
public ComputeSignaturesMinhash.MyMapper()
configure
public void configure(JobConf job)
- Specified by:
configure in interface JobConfigurable- Overrides:
configure in class MapReduceBase
map
public void map(IntWritable docno,
WeightedIntDocVector docvectorIn,
OutputCollector<IntWritable,MinhashSignature> output,
Reporter reporter)
throws IOException
- Specified by:
map in interface Mapper<IntWritable,WeightedIntDocVector,IntWritable,MinhashSignature>
- Throws:
IOException