Class CombinedLogLoader

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

public class CombinedLogLoader
extends RegExLoader

CombinedLogLoader is used to load logs based on Apache's combined log format, based on a format like LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined The log filename ends up being access_log from a line like CustomLog logs/combined_log combined Example: raw = LOAD 'combined_log' USING AS (remoteAddr, remoteLogname, user, time, method, uri, proto, status, bytes, referer, userAgent);

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 CombinedLogLoader()
Method Detail


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

Copyright © 2007-2012 The Apache Software Foundation