com.intel.hadoop.graphbuilder.preprocess.functional
Class CountFunc<T>

java.lang.Object
  extended by 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


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

Constructor Detail

CountFunc

public CountFunc()
Method Detail

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>