Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Protected Member Functions | |
virtual void | SetUp () |
virtual void | TearDown () |
shared_ptr< BufferedBlockMgr > | CreateMgr (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< ExecEnv > | exec_env_ |
scoped_ptr< RuntimeState > | runtime_state_ |
scoped_ptr< MemTracker > | block_mgr_parent_tracker_ |
scoped_ptr< MemTracker > | io_mgr_tracker_ |
Static Protected Attributes | |
static const int | block_size_ = 1024 |
static const int | SINGLE_THREADED_TID = -1 |
Definition at line 53 of file buffered-block-mgr-test.cc.
|
inlineprotected |
Definition at line 124 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::Block::Allocate(), impala::BufferedBlockMgr::GetNewBlock(), and impala::Status::ok().
|
inlineprotected |
Definition at line 114 of file buffered-block-mgr-test.cc.
References block_mgr_parent_tracker_, block_size_, impala::BufferedBlockMgr::Create(), and runtime_state_.
Referenced by TestRandomInternalMulti(), and TestRandomInternalSingle().
|
inlinestaticprotected |
Definition at line 74 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::GetNewBlock(), and impala::Promise< T >::Set().
|
inlinestaticprotected |
Definition at line 85 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::Block::Allocate().
Referenced by TestRandomInternalImpl().
|
inlineprotectedvirtual |
Definition at line 57 of file buffered-block-mgr-test.cc.
References block_mgr_parent_tracker_, exec_env_, io_mgr_tracker_, and runtime_state_.
|
inlineprotectedvirtual |
Definition at line 67 of file buffered-block-mgr-test.cc.
References block_mgr_parent_tracker_, exec_env_, io_mgr_tracker_, and runtime_state_.
|
inlineprotected |
Definition at line 144 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::Cancel(), impala::BufferedBlockMgr::GetNewBlock(), impala::Status::IsCancelled(), MakeRandomSizeData(), impala::Status::ok(), impala::BufferedBlockMgr::RegisterClient(), runtime_state_, SINGLE_THREADED_TID, and ValidateRandomSizeData().
Referenced by TestRandomInternalMulti(), and TestRandomInternalSingle().
|
inlineprotected |
Definition at line 276 of file buffered-block-mgr-test.cc.
References block_mgr_parent_tracker_, CreateMgr(), and TestRandomInternalImpl().
|
inlineprotected |
Definition at line 267 of file buffered-block-mgr-test.cc.
References block_mgr_parent_tracker_, CreateMgr(), SINGLE_THREADED_TID, and TestRandomInternalImpl().
|
inlinestaticprotected |
Definition at line 80 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::Block::buffer(), and impala::BufferedBlockMgr::Block::valid_data_len().
|
inlinestaticprotected |
Definition at line 100 of file buffered-block-mgr-test.cc.
References impala::BufferedBlockMgr::Block::buffer(), and impala::BufferedBlockMgr::Block::valid_data_len().
Referenced by TestRandomInternalImpl().
|
protected |
Definition at line 293 of file buffered-block-mgr-test.cc.
Referenced by CreateMgr(), SetUp(), TearDown(), TestRandomInternalMulti(), and TestRandomInternalSingle().
|
staticprotected |
Definition at line 55 of file buffered-block-mgr-test.cc.
Referenced by CreateMgr().
|
protected |
Definition at line 291 of file buffered-block-mgr-test.cc.
Referenced by SetUp(), and TearDown().
|
protected |
Definition at line 294 of file buffered-block-mgr-test.cc.
Referenced by SetUp(), and TearDown().
|
protected |
Definition at line 292 of file buffered-block-mgr-test.cc.
Referenced by CreateMgr(), SetUp(), TearDown(), and TestRandomInternalImpl().
|
staticprotected |
Definition at line 143 of file buffered-block-mgr-test.cc.
Referenced by TestRandomInternalImpl(), and TestRandomInternalSingle().