org.apache.tez.mapreduce.common
Class Utils
java.lang.Object
org.apache.tez.mapreduce.common.Utils
public class Utils
- extends Object
|
Constructor Summary |
Utils()
|
|
Method Summary |
static List<org.apache.hadoop.fs.FileSystem.Statistics> |
getFsStatistics(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Gets a handle to the Statistics instance based on the scheme associated
with path. |
static org.apache.hadoop.mapred.Counters.Counter |
getMRCounter(org.apache.tez.common.counters.TezCounter tezCounter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getFsStatistics
@InterfaceAudience.Private
public static List<org.apache.hadoop.fs.FileSystem.Statistics> getFsStatistics(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Gets a handle to the Statistics instance based on the scheme associated
with path.
- Parameters:
path - the path.conf - the configuration to extract the scheme from if not part of
the path.
- Returns:
- a Statistics instance, or null if none is found for the scheme.
- Throws:
IOException
getMRCounter
public static org.apache.hadoop.mapred.Counters.Counter getMRCounter(org.apache.tez.common.counters.TezCounter tezCounter)
Copyright © 2014 Apache Software Foundation. All rights reserved.