Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <hdfs-bulk-ops.h>
Public Member Functions | |
HdfsOp (HdfsOpType op, const std::string &src, HdfsOperationSet *op_set) | |
HdfsOp (HdfsOpType op, const std::string &src, const std::string &dst, HdfsOperationSet *op_set) | |
HdfsOp (HdfsOpType op, const std::string &src, short permissions, HdfsOperationSet *op_set) | |
HdfsOp () | |
Required for ThreadPool. More... | |
HdfsOpType | op () const |
const std::string & | src () const |
const std::string & | dst () const |
void | Execute () const |
Private Attributes | |
HdfsOpType | op_ |
The kind of operation to execute. More... | |
std::string | src_ |
First operand. More... | |
std::string | dst_ |
Second string operand, ignored except for RENAME. More... | |
short | permissions_ |
Permission operand, ignored except for CHMOD. More... | |
HdfsOperationSet * | op_set_ |
Containing operation set, used to record errors and to signal completion. More... | |
Container class that encapsulates a single HDFS operation. Used only internally by HdfsOperationSet, but visible because it parameterises HdfsOpThreadPool.
Definition at line 40 of file hdfs-bulk-ops.h.
HdfsOp::HdfsOp | ( | HdfsOpType | op, |
const std::string & | src, | ||
HdfsOperationSet * | op_set | ||
) |
Definition at line 28 of file hdfs-bulk-ops.cc.
References impala::RENAME, and src_.
HdfsOp::HdfsOp | ( | HdfsOpType | op, |
const std::string & | src, | ||
const std::string & | dst, | ||
HdfsOperationSet * | op_set | ||
) |
Definition at line 34 of file hdfs-bulk-ops.cc.
References dst_, impala::RENAME, and src_.
impala::HdfsOp::HdfsOp | ( | HdfsOpType | op, |
const std::string & | src, | ||
short | permissions, | ||
HdfsOperationSet * | op_set | ||
) |
HdfsOp::HdfsOp | ( | ) |
Required for ThreadPool.
Definition at line 49 of file hdfs-bulk-ops.cc.
|
inline |
Definition at line 55 of file hdfs-bulk-ops.h.
References dst_.
void HdfsOp::Execute | ( | ) | const |
Actually performs the corresponding HDFS operation, and signals completion to HdfsOperationSet via MarkOneOpDone.
Definition at line 51 of file hdfs-bulk-ops.cc.
References impala::HdfsOperationSet::AddError(), impala::CHMOD, impala::CREATE_DIR, impala::DELETE, impala::DELETE_THEN_CREATE, dst_, impala::GetStrErrMsg(), impala::HdfsOperationSet::hdfs_connection(), impala::HdfsOperationSet::MarkOneOpDone(), op_, op_set_, permissions_, impala::RENAME, impala::HdfsOperationSet::ShouldAbort(), src_, and VLOG_FILE.
Referenced by HdfsThreadPoolHelper().
|
inline |
Definition at line 53 of file hdfs-bulk-ops.h.
References op_.
|
inline |
Definition at line 54 of file hdfs-bulk-ops.h.
References src_.
|
private |
Second string operand, ignored except for RENAME.
Definition at line 69 of file hdfs-bulk-ops.h.
|
private |
The kind of operation to execute.
Definition at line 63 of file hdfs-bulk-ops.h.
|
private |
Containing operation set, used to record errors and to signal completion.
Definition at line 75 of file hdfs-bulk-ops.h.
Referenced by Execute().
|
private |
Permission operand, ignored except for CHMOD.
Definition at line 72 of file hdfs-bulk-ops.h.
Referenced by Execute().
|
private |
First operand.
Definition at line 66 of file hdfs-bulk-ops.h.