ivory.lsh.projection
Class ComputeSignaturesMinhash.MyMapper

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by 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

Constructor Summary
ComputeSignaturesMinhash.MyMapper()
           
 
Method Summary
 void configure(JobConf job)
           
 void map(IntWritable docno, WeightedIntDocVector docvectorIn, OutputCollector<IntWritable,MinhashSignature> output, Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

ComputeSignaturesMinhash.MyMapper

public ComputeSignaturesMinhash.MyMapper()
Method Detail

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