Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::RuntimeProfile::Counter Class Reference

#include <runtime-profile.h>

Inheritance diagram for impala::RuntimeProfile::Counter:
Collaboration diagram for impala::RuntimeProfile::Counter:

Public Member Functions

 Counter (TUnit::type unit, int64_t value=0)
 
virtual ~Counter ()
 
virtual void Add (int64_t delta)
 
void BitOr (int64_t delta)
 Use this to update if the counter is a bitmap. More...
 
virtual void Set (int64_t value)
 
virtual void Set (double value)
 
virtual int64_t value () const
 
virtual double double_value () const
 
TUnit::type unit () const
 

Protected Attributes

AtomicInt< int64_t > value_
 
TUnit::type unit_
 

Friends

class RuntimeProfile
 

Detailed Description

Definition at line 85 of file runtime-profile.h.

Constructor & Destructor Documentation

impala::RuntimeProfile::Counter::Counter ( TUnit::type  unit,
int64_t  value = 0 
)
inline

Definition at line 87 of file runtime-profile.h.

virtual impala::RuntimeProfile::Counter::~Counter ( )
inlinevirtual

Definition at line 91 of file runtime-profile.h.

Member Function Documentation

void impala::RuntimeProfile::Counter::BitOr ( int64_t  delta)
inline

Use this to update if the counter is a bitmap.

Definition at line 98 of file runtime-profile.h.

References value_.

Referenced by impala::DiskIoMgr::ReadRange().

virtual double impala::RuntimeProfile::Counter::double_value ( ) const
inlinevirtual

Definition at line 110 of file runtime-profile.h.

References value_.

Referenced by impala::TEST(), and impala::RuntimeProfile::AveragedCounter::UpdateCounter().

virtual void impala::RuntimeProfile::Counter::Set ( double  value)
inlinevirtual

Reimplemented in impala::RuntimeProfile::AveragedCounter.

Definition at line 104 of file runtime-profile.h.

References value(), and value_.

TUnit::type impala::RuntimeProfile::Counter::unit ( ) const
inline

Friends And Related Function Documentation

friend class RuntimeProfile
friend

Definition at line 117 of file runtime-profile.h.

Member Data Documentation

TUnit::type impala::RuntimeProfile::Counter::unit_
protected

The documentation for this class was generated from the following file: