org.apache.pig.piggybank.storage.apachelog
Class CombinedLogLoader

java.lang.Object
  extended by org.apache.pig.LoadFunc
      extended by org.apache.pig.piggybank.storage.RegExLoader
          extended by org.apache.pig.piggybank.storage.apachelog.CombinedLogLoader

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 org.apache.pig.piggybank.storage.apachelog.CombinedLogLoader AS (remoteAddr, remoteLogname, user, time, method, uri, proto, status, bytes, referer, userAgent);


Constructor Summary
CombinedLogLoader()
           
 
Method Summary
 Pattern getPattern()
           
 
Methods inherited from class org.apache.pig.piggybank.storage.RegExLoader
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

CombinedLogLoader

public CombinedLogLoader()
Method Detail

getPattern

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


Copyright © 2007-2012 The Apache Software Foundation