public class HadoopMapReduceCounters extends Counters
LOG| Constructor and Description |
|---|
HadoopMapReduceCounters(HadoopCounters cntrs)
Creates new instance based on given counters.
|
| Modifier and Type | Method and Description |
|---|---|
CounterGroup |
addGroup(CounterGroup grp) |
CounterGroup |
addGroup(String name,
String displayName) |
int |
countCounters() |
boolean |
equals(Object genericRight) |
Counter |
findCounter(Enum<?> key) |
Counter |
findCounter(String scheme,
FileSystemCounter key) |
Counter |
findCounter(String grpName,
String cntrName) |
Counter |
findCounter(String grpName,
String cntrName,
boolean create)
Find a counter in the group.
|
CounterGroup |
getGroup(String grpName) |
Iterable<String> |
getGroupNames() |
boolean |
getWriteAllCounters() |
int |
groupSize(String grpName)
Returns size of a group.
|
int |
hashCode() |
void |
incrAllCounters(AbstractCounters<Counter,CounterGroup> other) |
Iterator<Counter> |
iterateGroup(String grpName)
Returns counters iterator for specified group.
|
Iterator<CounterGroup> |
iterator() |
Limits |
limits() |
void |
readFields(DataInput in) |
void |
setWriteAllCounters(boolean snd) |
void |
write(DataOutput out) |
toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic HadoopMapReduceCounters(HadoopCounters cntrs)
cntrs - Counters to adapt.public CounterGroup addGroup(CounterGroup grp)
addGroup in class AbstractCounters<Counter,CounterGroup>public CounterGroup addGroup(String name, String displayName)
addGroup in class AbstractCounters<Counter,CounterGroup>public Counter findCounter(String grpName, String cntrName)
findCounter in class AbstractCounters<Counter,CounterGroup>public Counter findCounter(Enum<?> key)
findCounter in class AbstractCounters<Counter,CounterGroup>public Counter findCounter(String scheme, FileSystemCounter key)
findCounter in class AbstractCounters<Counter,CounterGroup>public Iterable<String> getGroupNames()
getGroupNames in class AbstractCounters<Counter,CounterGroup>public Iterator<CounterGroup> iterator()
iterator in interface Iterable<CounterGroup>iterator in class AbstractCounters<Counter,CounterGroup>public CounterGroup getGroup(String grpName)
getGroup in class AbstractCounters<Counter,CounterGroup>public int countCounters()
countCounters in class AbstractCounters<Counter,CounterGroup>public void write(DataOutput out) throws IOException
write in interface Writablewrite in class AbstractCounters<Counter,CounterGroup>IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface WritablereadFields in class AbstractCounters<Counter,CounterGroup>IOExceptionpublic void incrAllCounters(AbstractCounters<Counter,CounterGroup> other)
incrAllCounters in class AbstractCounters<Counter,CounterGroup>public boolean equals(Object genericRight)
equals in class AbstractCounters<Counter,CounterGroup>public int hashCode()
hashCode in class AbstractCounters<Counter,CounterGroup>public void setWriteAllCounters(boolean snd)
setWriteAllCounters in class AbstractCounters<Counter,CounterGroup>public boolean getWriteAllCounters()
getWriteAllCounters in class AbstractCounters<Counter,CounterGroup>public Limits limits()
limits in class AbstractCounters<Counter,CounterGroup>public int groupSize(String grpName)
grpName - Name of the group.public Iterator<Counter> iterateGroup(String grpName)
grpName - Name of the group to iterate.public Counter findCounter(String grpName, String cntrName, boolean create)
grpName - The name of the counter group.cntrName - The name of the counter.create - Create the counter if not found if true.null if create is false.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019