Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
void | WriteValidateCallback (int num_writes, DiskIoMgr::WriteRange **written_range, DiskIoMgr *io_mgr, DiskIoMgr::RequestContext *reader, int32_t *data, Status expected_status, const Status &status) |
void | WriteCompleteCallback (int num_writes, const Status &status) |
Protected Member Functions | |
void | CreateTempFile (const char *filename, const char *data) |
int | CreateTempFile (const char *filename, int file_size) |
DiskIoMgr::ScanRange * | InitRange (int num_buffers, const char *file_path, int offset, int len, int disk_id, int64_t mtime, void *meta_data=NULL, bool is_cached=false) |
Static Protected Member Functions | |
static void | ValidateEmptyOrCorrect (const char *expected, const char *buffer, int len) |
static void | ValidateSyncRead (DiskIoMgr *io_mgr, DiskIoMgr::RequestContext *reader, DiskIoMgr::ScanRange *range, const char *expected, int expected_len=-1) |
static void | ValidateScanRange (DiskIoMgr::ScanRange *range, const char *expected, int expected_len, const Status &expected_status) |
static void | ScanRangeThread (DiskIoMgr *io_mgr, DiskIoMgr::RequestContext *reader, const char *expected_result, int expected_len, const Status &expected_status, int max_ranges, AtomicInt< int > *num_ranges_processed) |
Protected Attributes | |
scoped_ptr< ObjectPool > | pool_ |
mutex | written_mutex_ |
condition_variable | writes_done_ |
int | num_ranges_written_ |
Definition at line 41 of file disk-io-mgr-test.cc.
|
inlineprotected |
Definition at line 76 of file disk-io-mgr-test.cc.
|
inlineprotected |
Definition at line 83 of file disk-io-mgr-test.cc.
|
inlineprotected |
Definition at line 153 of file disk-io-mgr-test.cc.
References impala::DiskIoMgr::ScanRange::mtime(), pool_, and impala::DiskIoMgr::ScanRange::Reset().
|
inlinestaticprotected |
Definition at line 138 of file disk-io-mgr-test.cc.
References impala::Status::code(), impala::DiskIoMgr::GetNextRange(), impala::Status::ok(), and ValidateScanRange().
|
inlinestaticprotected |
Definition at line 95 of file disk-io-mgr-test.cc.
Referenced by ValidateScanRange().
|
inlinestaticprotected |
Definition at line 116 of file disk-io-mgr-test.cc.
References impala::DiskIoMgr::BufferDescriptor::buffer(), impala::Status::code(), impala::DiskIoMgr::ScanRange::GetNext(), impala::DiskIoMgr::BufferDescriptor::len(), impala::DiskIoMgr::RequestRange::offset(), impala::Status::ok(), impala::DiskIoMgr::BufferDescriptor::Return(), impala::DiskIoMgr::BufferDescriptor::scan_range_offset(), and ValidateEmptyOrCorrect().
Referenced by ScanRangeThread().
|
inlinestaticprotected |
Definition at line 103 of file disk-io-mgr-test.cc.
References impala::DiskIoMgr::BufferDescriptor::buffer(), impala::DiskIoMgr::BufferDescriptor::len(), impala::DiskIoMgr::RequestRange::len(), impala::Status::ok(), impala::DiskIoMgr::Read(), and impala::DiskIoMgr::BufferDescriptor::Return().
Referenced by WriteValidateCallback().
|
inline |
Definition at line 66 of file disk-io-mgr-test.cc.
References num_ranges_written_, impala::Status::ok(), writes_done_, and written_mutex_.
Referenced by impala::TEST_F().
|
inline |
Definition at line 43 of file disk-io-mgr-test.cc.
References impala::Status::code(), impala::Status::IsCancelled(), impala::DiskIoMgr::ScanRange::NEVER_CACHE, num_ranges_written_, impala::Status::ok(), pool_, impala::DiskIoMgr::ScanRange::Reset(), ValidateSyncRead(), writes_done_, and written_mutex_.
Referenced by impala::TEST_F().
|
protected |
Definition at line 165 of file disk-io-mgr-test.cc.
Referenced by WriteCompleteCallback(), and WriteValidateCallback().
|
protected |
Definition at line 161 of file disk-io-mgr-test.cc.
Referenced by InitRange(), and WriteValidateCallback().
|
protected |
Definition at line 164 of file disk-io-mgr-test.cc.
Referenced by WriteCompleteCallback(), and WriteValidateCallback().
|
protected |
Definition at line 163 of file disk-io-mgr-test.cc.
Referenced by WriteCompleteCallback(), and WriteValidateCallback().