public class AggregateTezCounterDelegate<T extends TezCounter> extends AbstractCounter implements AggregateTezCounter
| Constructor and Description |
|---|
AggregateTezCounterDelegate(T child) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(TezCounter other)
Aggregate this counter with another counter
|
long |
getCount() |
String |
getDisplayName()
Get the display name of the counter.
|
long |
getMax() |
long |
getMin() |
String |
getName() |
TezCounter |
getUnderlyingCounter()
Return the underlying object if this is a facade.
|
long |
getValue()
What is the current value of this counter?
|
void |
increment(long incr)
Increment this counter by the given value
|
void |
readFields(DataInput arg0) |
void |
setValue(long value)
Set this counter by the given value
|
void |
write(DataOutput arg0) |
equals, hashCode, setDisplayName, toStringpublic AggregateTezCounterDelegate(T child)
public String getName()
getName in interface TezCounterpublic String getDisplayName()
TezCountergetDisplayName in interface TezCounterpublic long getValue()
TezCountergetValue in interface TezCounterpublic void setValue(long value)
TezCountersetValue in interface TezCountervalue - the value to setpublic void increment(long incr)
TezCounterincrement in interface TezCounterincr - 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 TezCounter getUnderlyingCounter()
TezCountergetUnderlyingCounter in interface TezCounterpublic void readFields(DataInput arg0) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput arg0) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic long getMin()
getMin in interface AggregateTezCounterpublic long getMax()
getMax in interface AggregateTezCounterpublic long getCount()
getCount in interface AggregateTezCounterCopyright © 2020 Apache Software Foundation. All rights reserved.