org.apache.hadoop.mapreduce.counters
Class FileSystemCounterGroup.FSCounter
java.lang.Object
org.apache.hadoop.mapreduce.counters.AbstractCounter
org.apache.hadoop.mapreduce.counters.FileSystemCounterGroup.FSCounter
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, Counter
- Enclosing class:
- FileSystemCounterGroup<C extends Counter>
@InterfaceAudience.Private
public static class FileSystemCounterGroup.FSCounter
- extends AbstractCounter
FileSystemCounterGroup.FSCounter
public FileSystemCounterGroup.FSCounter(String scheme,
FileSystemCounter ref)
getScheme
@InterfaceAudience.Private
public String getScheme()
getFileSystemCounter
@InterfaceAudience.Private
public FileSystemCounter getFileSystemCounter()
getName
public String getName()
- Returns:
- the name of the counter
getDisplayName
public String getDisplayName()
- Description copied from interface:
Counter
- Get the display name of the counter.
- Returns:
- the user facing name of the counter
localizeCounterName
protected String localizeCounterName(String counterName)
getValue
public long getValue()
- Description copied from interface:
Counter
- What is the current value of this counter?
- Returns:
- the current value
setValue
public void setValue(long value)
- Description copied from interface:
Counter
- Set this counter by the given value
- Parameters:
value
- the value to set
increment
public void increment(long incr)
- Description copied from interface:
Counter
- Increment this counter by the given value
- Parameters:
incr
- the value to increase this counter by
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
getUnderlyingCounter
public Counter getUnderlyingCounter()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.