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

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.CommonLogLoader

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


Constructor Summary
CommonLogLoader()
           
 
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

CommonLogLoader

public CommonLogLoader()
Method Detail

getPattern

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


Copyright © 2007-2012 The Apache Software Foundation