datafu.pig.util
Class BoolToInt

java.lang.Object
  extended by org.apache.pig.EvalFunc<T>
      extended by datafu.pig.util.SimpleEvalFunc<java.lang.Integer>
          extended by datafu.pig.util.BoolToInt

public class BoolToInt
extends SimpleEvalFunc<java.lang.Integer>

UDF which converts a Boolean to an Integer.


Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
BoolToInt()
           
 
Method Summary
 java.lang.Integer call(java.lang.Boolean val)
           
 
Methods inherited from class datafu.pig.util.SimpleEvalFunc
exec, getReturnType, outputSchema
 
Methods inherited from class org.apache.pig.EvalFunc
finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getSchemaName, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoolToInt

public BoolToInt()
Method Detail

call

public java.lang.Integer call(java.lang.Boolean val)


Matthew Hayes, Sam Shah