@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface TezCounter
extends org.apache.hadoop.io.Writable
Counters
represent global counters, defined either by the
framework or applications. Each Counter
is named by
an Enum
and has a long for the value.
Counters
are bunched into Groups, each comprising of
counters from a particular Enum
class.
Modifier and Type | Method and Description |
---|---|
default void |
aggregate(TezCounter other)
Aggregate this counter with another counter
|
String |
getDisplayName()
Get the display name of the counter.
|
String |
getName() |
long |
getValue()
What is the current value of this counter?
|
void |
increment(long incr)
Increment this counter by the given value
|
void |
setDisplayName(String displayName)
Deprecated.
(and no-op by default)
|
void |
setValue(long value)
Set this counter by the given value
|
@Deprecated void setDisplayName(String displayName)
displayName
- of the counterString getName()
String getDisplayName()
long getValue()
void setValue(long value)
value
- the value to setvoid increment(long incr)
incr
- the value to increase this counter bydefault void aggregate(TezCounter other)
other
- TezCounter to aggregate with, by default this is incr(other.getValue())Copyright © 2024 Apache Software Foundation. All rights reserved.