Class CommonLogLoader

  extended by org.apache.pig.LoadFunc
      extended by
          extended by

public class CommonLogLoader
extends RegExLoader

CommonLogLoader is used to load logs based on Apache's common log format, based on a format like LogFormat "%h %l %u %t \"%r\" %>s %b" common The log filename ends up being access_log from a line like CustomLog logs/access_log common Example: raw = LOAD 'access_log' USING AS (remoteAddr, remoteLogname, user, time, method, uri, proto, bytes);

Constructor Summary
Method Summary
 Pattern getPattern()
Methods inherited from class
getInputFormat, getNext, prepareToRead, setLocation
Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getLoadCaster, getPathStrings, join, relativeToAbsolutePath, setUDFContextSignature, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public CommonLogLoader()
Method Detail


public Pattern getPattern()
Specified by:
getPattern in class RegExLoader

Copyright © 2007-2012 The Apache Software Foundation