com.intel.hadoop.graphbuilder.preprocess.functional
Class CountFunc<T>
java.lang.Object
com.intel.hadoop.graphbuilder.preprocess.functional.CountFunc<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Functional<T,IntType>
public class CountFunc<T>
- extends java.lang.Object
- implements Functional<T,IntType>
Represents a counting functional: f x y -> y + 1
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountFunc
public CountFunc()
configure
public void configure(org.apache.hadoop.mapred.JobConf job)
throws java.lang.Exception
- Specified by:
configure
in interface Functional<T,IntType>
- Throws:
java.lang.Exception
reduce
public IntType reduce(T a,
IntType b)
- Specified by:
reduce
in interface Functional<T,IntType>
getInType
public java.lang.Class<T> getInType()
- Specified by:
getInType
in interface Functional<T,IntType>
getOutType
public java.lang.Class<IntType> getOutType()
- Specified by:
getOutType
in interface Functional<T,IntType>
base
public IntType base()
- Specified by:
base
in interface Functional<T,IntType>