Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::BufferedBlockMgrTest Class Reference
Inheritance diagram for impala::BufferedBlockMgrTest:
Collaboration diagram for impala::BufferedBlockMgrTest:

Protected Member Functions

virtual void SetUp ()
 
virtual void TearDown ()
 
shared_ptr< BufferedBlockMgrCreateMgr (int max_buffers)
 
void AllocateBlocks (BufferedBlockMgr *block_mgr, BufferedBlockMgr::Client *client, int num_blocks, vector< BufferedBlockMgr::Block * > *blocks)
 
void TestRandomInternalImpl (BufferedBlockMgr *block_mgr, int num_buffers, int tid)
 
void TestRandomInternalSingle ()
 
void TestRandomInternalMulti (int num_threads)
 

Static Protected Member Functions

static void GetFreeBlock (BufferedBlockMgr *block_mgr, BufferedBlockMgr::Client *client, BufferedBlockMgr::Block **new_block, Promise< bool > *promise)
 
static void ValidateBlock (BufferedBlockMgr::Block *block, int32_t data)
 
static int32_t * MakeRandomSizeData (BufferedBlockMgr::Block *block)
 
static void ValidateRandomSizeData (BufferedBlockMgr::Block *block, int32_t size)
 

Protected Attributes

scoped_ptr< ExecEnvexec_env_
 
scoped_ptr< RuntimeStateruntime_state_
 
scoped_ptr< MemTrackerblock_mgr_parent_tracker_
 
scoped_ptr< MemTrackerio_mgr_tracker_
 

Static Protected Attributes

static const int block_size_ = 1024
 
static const int SINGLE_THREADED_TID = -1
 

Detailed Description

Definition at line 53 of file buffered-block-mgr-test.cc.

Member Function Documentation

void impala::BufferedBlockMgrTest::AllocateBlocks ( BufferedBlockMgr block_mgr,
BufferedBlockMgr::Client client,
int  num_blocks,
vector< BufferedBlockMgr::Block * > *  blocks 
)
inlineprotected
shared_ptr<BufferedBlockMgr> impala::BufferedBlockMgrTest::CreateMgr ( int  max_buffers)
inlineprotected
static void impala::BufferedBlockMgrTest::GetFreeBlock ( BufferedBlockMgr block_mgr,
BufferedBlockMgr::Client client,
BufferedBlockMgr::Block **  new_block,
Promise< bool > *  promise 
)
inlinestaticprotected
static int32_t* impala::BufferedBlockMgrTest::MakeRandomSizeData ( BufferedBlockMgr::Block block)
inlinestaticprotected
virtual void impala::BufferedBlockMgrTest::SetUp ( )
inlineprotectedvirtual
virtual void impala::BufferedBlockMgrTest::TearDown ( )
inlineprotectedvirtual
void impala::BufferedBlockMgrTest::TestRandomInternalMulti ( int  num_threads)
inlineprotected
void impala::BufferedBlockMgrTest::TestRandomInternalSingle ( )
inlineprotected
static void impala::BufferedBlockMgrTest::ValidateBlock ( BufferedBlockMgr::Block block,
int32_t  data 
)
inlinestaticprotected
static void impala::BufferedBlockMgrTest::ValidateRandomSizeData ( BufferedBlockMgr::Block block,
int32_t  size 
)
inlinestaticprotected

Member Data Documentation

scoped_ptr<MemTracker> impala::BufferedBlockMgrTest::block_mgr_parent_tracker_
protected
const int impala::BufferedBlockMgrTest::block_size_ = 1024
staticprotected

Definition at line 55 of file buffered-block-mgr-test.cc.

Referenced by CreateMgr().

scoped_ptr<ExecEnv> impala::BufferedBlockMgrTest::exec_env_
protected

Definition at line 291 of file buffered-block-mgr-test.cc.

Referenced by SetUp(), and TearDown().

scoped_ptr<MemTracker> impala::BufferedBlockMgrTest::io_mgr_tracker_
protected

Definition at line 294 of file buffered-block-mgr-test.cc.

Referenced by SetUp(), and TearDown().

scoped_ptr<RuntimeState> impala::BufferedBlockMgrTest::runtime_state_
protected

Definition at line 292 of file buffered-block-mgr-test.cc.

Referenced by CreateMgr(), SetUp(), TearDown(), and TestRandomInternalImpl().

const int impala::BufferedBlockMgrTest::SINGLE_THREADED_TID = -1
staticprotected

Definition at line 143 of file buffered-block-mgr-test.cc.

Referenced by TestRandomInternalImpl(), and TestRandomInternalSingle().


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