Class MD5

  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(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


public MD5()


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


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

Matthew Hayes, Sam Shah