com.intel.hadoop.graphbuilder.demoapps.wikipedia.docwordgraph
Class TransformToTFIDF.IDFfunc

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.demoapps.wikipedia.docwordgraph.TransformToTFIDF.IDFfunc
All Implemented Interfaces:
Functional<FloatType,FloatType>
Enclosing class:
TransformToTFIDF

public static final class TransformToTFIDF.IDFfunc
extends java.lang.Object
implements Functional<FloatType,FloatType>

f : tf * df -> tfidf

Author:
Haijie Gu

Constructor Summary
TransformToTFIDF.IDFfunc()
           
 
Method Summary
 FloatType base()
           
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 java.lang.Class<FloatType> getInType()
           
 java.lang.Class<FloatType> getOutType()
           
 FloatType reduce(FloatType a, FloatType b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformToTFIDF.IDFfunc

public TransformToTFIDF.IDFfunc()
Method Detail

reduce

public FloatType reduce(FloatType a,
                        FloatType b)
Specified by:
reduce in interface Functional<FloatType,FloatType>

configure

public void configure(org.apache.hadoop.mapred.JobConf job)
               throws java.lang.Exception
Specified by:
configure in interface Functional<FloatType,FloatType>
Throws:
java.lang.Exception

getInType

public java.lang.Class<FloatType> getInType()
Specified by:
getInType in interface Functional<FloatType,FloatType>

getOutType

public java.lang.Class<FloatType> getOutType()
Specified by:
getOutType in interface Functional<FloatType,FloatType>

base

public FloatType base()
Specified by:
base in interface Functional<FloatType,FloatType>