Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <runtime-profile.h>
Public Member Functions | |
ScopedCounter (RuntimeProfile::Counter *counter, int64_t val) | |
~ScopedCounter () | |
Increment the counter when object is destroyed. More... | |
Private Member Functions | |
ScopedCounter (const ScopedCounter &counter) | |
Disable copy constructor and assignment. More... | |
ScopedCounter & | operator= (const ScopedCounter &counter) |
Private Attributes | |
int64_t | val_ |
RuntimeProfile::Counter * | counter_ |
Utility class to update the counter at object construction and destruction. When the object is constructed, decrement the counter by val. When the object goes out of scope, increment the counter by val.
Definition at line 678 of file runtime-profile.h.
|
inline |
Definition at line 680 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::Add(), counter_, and val_.
|
inline |
Increment the counter when object is destroyed.
Definition at line 688 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::Add(), counter_, and val_.
|
private |
Disable copy constructor and assignment.
|
private |
|
private |
Definition at line 698 of file runtime-profile.h.
Referenced by ScopedCounter(), and ~ScopedCounter().
|
private |
Definition at line 697 of file runtime-profile.h.
Referenced by ScopedCounter(), and ~ScopedCounter().