org.apache.mahout.math.stats.entropy
Class SpecificConditionalEntropyMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<StringTuple,VarIntWritable,org.apache.hadoop.io.Text,VarIntWritable>
org.apache.mahout.math.stats.entropy.SpecificConditionalEntropyMapper
public class SpecificConditionalEntropyMapper
- extends org.apache.hadoop.mapreduce.Mapper<StringTuple,VarIntWritable,org.apache.hadoop.io.Text,VarIntWritable>
Converts the key from StringTuple
with values [key, value] to Text
with value key.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, run, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecificConditionalEntropyMapper
public SpecificConditionalEntropyMapper()
map
protected void map(StringTuple key,
VarIntWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<StringTuple,VarIntWritable,org.apache.hadoop.io.Text,VarIntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.