public static class ComputeSignaturesRandom.MyMapper extends MapReduceBase implements Mapper<IntWritable,WeightedIntDocVector,IntWritable,NBitSignature>
Constructor and Description |
---|
ComputeSignaturesRandom.MyMapper() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf job) |
static double |
dotProduct(HMapIFW docvector,
ArrayListOfFloatsWritable vector) |
static double |
dotProduct(HMapIFW docvector,
FloatAsBytesWritable vector) |
void |
map(IntWritable docno,
WeightedIntDocVector docvectorIn,
OutputCollector<IntWritable,NBitSignature> output,
Reporter reporter) |
close
public void configure(JobConf job)
configure
in interface JobConfigurable
configure
in class MapReduceBase
public static double dotProduct(HMapIFW docvector, ArrayListOfFloatsWritable vector)
public static double dotProduct(HMapIFW docvector, FloatAsBytesWritable vector)
public void map(IntWritable docno, WeightedIntDocVector docvectorIn, OutputCollector<IntWritable,NBitSignature> output, Reporter reporter) throws IOException
map
in interface Mapper<IntWritable,WeightedIntDocVector,IntWritable,NBitSignature>
IOException