datafu.pig.hash
Class MD5

java.lang.Object
  extended by org.apache.pig.EvalFunc<T>
      extended by datafu.pig.util.SimpleEvalFunc<java.lang.String>
          extended by datafu.pig.hash.MD5

public class MD5
extends SimpleEvalFunc<java.lang.String>

Computes the MD5 value of a string and outputs it in hex (by default). A method can be provided to the constructor, which may be either 'hex' or 'base64'.


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

MD5

public MD5()

MD5

public MD5(java.lang.String method)
Method Detail

call

public java.lang.String call(java.lang.String val)


Matthew Hayes, Sam Shah