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

Protected Member Functions

virtual void SetUp ()
 
virtual void CreateDescriptors ()
 
virtual void TearDown ()
 
void CreateMgr (int64_t limit, int block_size)
 
virtual RowBatchCreateIntBatch (int start_val, int num_rows, bool gen_null)
 
virtual RowBatchCreateStringBatch (int string_idx, int num_rows, bool gen_null)
 
void AppendRowTuples (TupleRow *row, vector< int > *results)
 
void AppendRowTuples (TupleRow *row, vector< StringValue > *results)
 
void AppendValue (Tuple *t, vector< int > *results)
 
void AppendValue (Tuple *t, vector< StringValue > *results)
 
template<typename T >
void ReadValues (BufferedTupleStream *stream, RowDescriptor *desc, vector< T > *results, int num_batches=-1)
 
virtual void VerifyResults (const vector< int > &results, int exp_rows, bool gen_null)
 
virtual void VerifyResults (const vector< StringValue > &results, int exp_rows, bool gen_null)
 
template<typename T >
void TestValues (int num_batches, RowDescriptor *desc, bool gen_null)
 
void TestIntValuesInterleaved (int num_batches, int num_batches_before_read)
 

Protected Attributes

scoped_ptr< ExecEnvexec_env_
 
scoped_ptr< RuntimeStateruntime_state_
 
scoped_ptr< MemTrackerblock_mgr_parent_tracker_
 
shared_ptr< BufferedBlockMgrblock_mgr_
 
BufferedBlockMgr::Clientclient_
 
MemTracker tracker_
 
ObjectPool pool_
 
RowDescriptorint_desc_
 
RowDescriptorstring_desc_
 
scoped_ptr< MemPoolmem_pool_
 

Detailed Description

Definition at line 57 of file buffered-tuple-stream-test.cc.

Member Function Documentation

void impala::SimpleTupleStreamTest::AppendRowTuples ( TupleRow row,
vector< int > *  results 
)
inlineprotected
void impala::SimpleTupleStreamTest::AppendRowTuples ( TupleRow row,
vector< StringValue > *  results 
)
inlineprotected
void impala::SimpleTupleStreamTest::AppendValue ( Tuple t,
vector< int > *  results 
)
inlineprotected

Definition at line 192 of file buffered-tuple-stream-test.cc.

Referenced by AppendRowTuples().

void impala::SimpleTupleStreamTest::AppendValue ( Tuple t,
vector< StringValue > *  results 
)
inlineprotected
void impala::SimpleTupleStreamTest::CreateMgr ( int64_t  limit,
int  block_size 
)
inlineprotected
template<typename T >
void impala::SimpleTupleStreamTest::ReadValues ( BufferedTupleStream stream,
RowDescriptor desc,
vector< T > *  results,
int  num_batches = -1 
)
inlineprotected
virtual void impala::SimpleTupleStreamTest::SetUp ( )
inlineprotectedvirtual
virtual void impala::SimpleTupleStreamTest::TearDown ( )
inlineprotectedvirtual
void impala::SimpleTupleStreamTest::TestIntValuesInterleaved ( int  num_batches,
int  num_batches_before_read 
)
inlineprotected
template<typename T >
void impala::SimpleTupleStreamTest::TestValues ( int  num_batches,
RowDescriptor desc,
bool  gen_null 
)
inlineprotected
virtual void impala::SimpleTupleStreamTest::VerifyResults ( const vector< int > &  results,
int  exp_rows,
bool  gen_null 
)
inlineprotectedvirtual

Definition at line 231 of file buffered-tuple-stream-test.cc.

References int_desc_, and impala::RowDescriptor::tuple_descriptors().

Referenced by TestValues().

virtual void impala::SimpleTupleStreamTest::VerifyResults ( const vector< StringValue > &  results,
int  exp_rows,
bool  gen_null 
)
inlineprotectedvirtual

Member Data Documentation

shared_ptr<BufferedBlockMgr> impala::SimpleTupleStreamTest::block_mgr_
protected
scoped_ptr<MemTracker> impala::SimpleTupleStreamTest::block_mgr_parent_tracker_
protected

Definition at line 389 of file buffered-tuple-stream-test.cc.

Referenced by TearDown().

BufferedBlockMgr::Client* impala::SimpleTupleStreamTest::client_
protected

Definition at line 392 of file buffered-tuple-stream-test.cc.

Referenced by CreateMgr(), TestIntValuesInterleaved(), and TestValues().

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

Definition at line 387 of file buffered-tuple-stream-test.cc.

Referenced by SetUp(), and TearDown().

scoped_ptr<MemPool> impala::SimpleTupleStreamTest::mem_pool_
protected

Definition at line 398 of file buffered-tuple-stream-test.cc.

Referenced by AppendValue(), SetUp(), and TearDown().

scoped_ptr<RuntimeState> impala::SimpleTupleStreamTest::runtime_state_
protected
MemTracker impala::SimpleTupleStreamTest::tracker_
protected

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