public class AggregateFrameworkCounter<T extends Enum<T>> extends FrameworkCounterGroup.FrameworkCounter implements AggregateTezCounter
| Constructor and Description |
|---|
AggregateFrameworkCounter(Enum<T> ref,
String groupName) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(TezCounter other)
Aggregate this counter with another counter
|
FrameworkCounterGroup.FrameworkCounter<T> |
asFrameworkCounter() |
long |
getCount() |
long |
getMax() |
long |
getMin() |
void |
increment(long incr)
Increment this counter by the given value
|
getDisplayName, getName, getUnderlyingCounter, getValue, readFields, setValue, writeequals, hashCode, setDisplayName, toStringpublic void increment(long incr)
TezCounterincrement in interface TezCounterincrement in class FrameworkCounterGroup.FrameworkCounterincr - the value to increase this counter bypublic void aggregate(TezCounter other)
TezCounteraggregate in interface AggregateTezCounteraggregate in interface TezCounterother - TezCounter to aggregate with, by default this is incr(other.getValue())public long getMin()
getMin in interface AggregateTezCounterpublic long getMax()
getMax in interface AggregateTezCounterpublic FrameworkCounterGroup.FrameworkCounter<T> asFrameworkCounter()
public long getCount()
getCount in interface AggregateTezCounterCopyright © 2022 Apache Software Foundation. All rights reserved.