List of usage examples for org.apache.hadoop.mapred Counters Counters
public Counters(org.apache.hadoop.mapreduce.Counters newCounters)
From source file:org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.java
License:Apache License
public static Counters getCounters(Job job) throws IOException { try {/*from w ww .j av a 2 s . co m*/ return new Counters(job.getJob().getCounters()); } catch (Exception ir) { throw new IOException(ir); } }