edu.umd.hooka.alignment
Class EFMarginalCounter.MarginalMapper

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by edu.umd.hooka.alignment.EFMarginalCounter.MarginalMapper
All Implemented Interfaces:
Closeable, JobConfigurable, Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>
Enclosing class:
EFMarginalCounter

public static class EFMarginalCounter.MarginalMapper
extends MapReduceBase
implements Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>


Constructor Summary
EFMarginalCounter.MarginalMapper()
           
 
Method Summary
 void close()
           
 IndexedFloatArray makeIFA(float[] map, int max)
           
 void map(IntWritable key, PhrasePair value, OutputCollector<IntWritable,IndexedFloatArray> output, Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
configure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
 

Constructor Detail

EFMarginalCounter.MarginalMapper

public EFMarginalCounter.MarginalMapper()
Method Detail

map

public void map(IntWritable key,
                PhrasePair value,
                OutputCollector<IntWritable,IndexedFloatArray> output,
                Reporter reporter)
         throws IOException
Specified by:
map in interface Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>
Throws:
IOException

makeIFA

public IndexedFloatArray makeIFA(float[] map,
                                 int max)

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class MapReduceBase