org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class PigHadoopLogger

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigHadoopLogger
All Implemented Interfaces:
PigLogger

public final class PigHadoopLogger
extends Object
implements PigLogger

A singleton class that implements the PigLogger interface for use in map reduce context. Provides ability to aggregate warning messages


Method Summary
 void destroy()
           
 boolean getAggregate()
           
static PigHadoopLogger getInstance()
          Get singleton instance of the context
 void setAggregate(boolean aggregate)
           
 void setReporter(PigStatusReporter reporter)
           
 void warn(Object o, String msg, Enum warningEnum)
          If you have warning messages that need aggregation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PigHadoopLogger getInstance()
Get singleton instance of the context


destroy

public void destroy()

setReporter

public void setReporter(PigStatusReporter reporter)

warn

public void warn(Object o,
                 String msg,
                 Enum warningEnum)
Description copied from interface: PigLogger
If you have warning messages that need aggregation

Specified by:
warn in interface PigLogger

getAggregate

public boolean getAggregate()

setAggregate

public void setAggregate(boolean aggregate)


Copyright © 2007-2012 The Apache Software Foundation