datafu.pig.util
Class IntToBool

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

public class IntToBool
extends SimpleEvalFunc<java.lang.Boolean>

UDF which converts an Integer to a Boolean.


Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
IntToBool()
           
 
Method Summary
 java.lang.Boolean call(java.lang.Integer 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

IntToBool

public IntToBool()
Method Detail

call

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


Matthew Hayes, Sam Shah