|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.common.metrics.Metrics.MetricsScope
public class Metrics.MetricsScope
MetricsScope : A class that encapsulates an idea of a metered scope. Instantiating a named scope and then closing it exposes two counters: (i) a "number of calls" counter ( <name>.n ), and (ii) a "number of msecs spent between scope open and close" counter. ( <name>.t)
| Method Summary | |
|---|---|
void |
close()
Closes scope, and records the time taken |
void |
open()
Opens scope, and makes note of the time started, increments run counter |
void |
reopen()
Closes scope if open, and reopens it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void open()
throws IOException
IOException
public void close()
throws IOException
IOException
public void reopen()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||