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) |
closepublic void configure(JobConf job)
configure in interface JobConfigurableconfigure in class MapReduceBasepublic 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