Class UserAgentClassify

  extended by org.apache.pig.EvalFunc<T>
      extended by datafu.pig.util.SimpleEvalFunc<java.lang.String>
          extended by datafu.pig.urls.UserAgentClassify

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

Given a user agent string, this UDF classifies clients to 'mobile' and 'desktop'. Current as of June 2011.

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


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

Matthew Hayes, Sam Shah