You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -38,59 +38,59 @@
|
||||
#include "dbrm.h"
|
||||
#include "batchloader.h"
|
||||
#include "../writeengine/client/we_clients.h"
|
||||
namespace dmlprocessor
|
||||
namespace dmlprocessor
|
||||
{
|
||||
class BatchInsertProc
|
||||
{
|
||||
public:
|
||||
typedef std::queue<messageqcpp::ByteStream > pkg_type;
|
||||
typedef boost::shared_ptr<pkg_type> SP_PKG;
|
||||
typedef std::vector<BRM::BulkSetHWMArg> BulkSetHWMArgs;
|
||||
BatchInsertProc(bool isAutocommitOn, uint32_t tableOid, execplan::CalpontSystemCatalog::SCN txnId, BRM::DBRM* aDbrm);
|
||||
BatchInsertProc(const BatchInsertProc& rhs);
|
||||
~BatchInsertProc();
|
||||
uint64_t grabTableLock(int32_t sessionId);
|
||||
SP_PKG getInsertQueue ();
|
||||
uint32_t getNumDBRoots();
|
||||
void setLastPkg (bool lastPkg);
|
||||
void addPkg(messageqcpp::ByteStream & insertBs);
|
||||
messageqcpp::ByteStream getPkg();
|
||||
void setError(int errorCode, std::string errMsg);
|
||||
void getError(int & errorCode, std::string & errMsg);
|
||||
int sendPkg(int pmId);
|
||||
void buildPkg(messageqcpp::ByteStream& bs);
|
||||
void buildLastPkg(messageqcpp::ByteStream& bs);
|
||||
void sendFirstBatch();
|
||||
void sendNextBatch();
|
||||
void sendlastBatch();
|
||||
void collectHwm();
|
||||
void setHwm();
|
||||
void receiveAllMsg();
|
||||
void receiveOutstandingMsg();
|
||||
typedef std::queue<messageqcpp::ByteStream > pkg_type;
|
||||
typedef boost::shared_ptr<pkg_type> SP_PKG;
|
||||
typedef std::vector<BRM::BulkSetHWMArg> BulkSetHWMArgs;
|
||||
BatchInsertProc(bool isAutocommitOn, uint32_t tableOid, execplan::CalpontSystemCatalog::SCN txnId, BRM::DBRM* aDbrm);
|
||||
BatchInsertProc(const BatchInsertProc& rhs);
|
||||
~BatchInsertProc();
|
||||
uint64_t grabTableLock(int32_t sessionId);
|
||||
SP_PKG getInsertQueue ();
|
||||
uint32_t getNumDBRoots();
|
||||
void setLastPkg (bool lastPkg);
|
||||
void addPkg(messageqcpp::ByteStream& insertBs);
|
||||
messageqcpp::ByteStream getPkg();
|
||||
void setError(int errorCode, std::string errMsg);
|
||||
void getError(int& errorCode, std::string& errMsg);
|
||||
int sendPkg(int pmId);
|
||||
void buildPkg(messageqcpp::ByteStream& bs);
|
||||
void buildLastPkg(messageqcpp::ByteStream& bs);
|
||||
void sendFirstBatch();
|
||||
void sendNextBatch();
|
||||
void sendlastBatch();
|
||||
void collectHwm();
|
||||
void setHwm();
|
||||
void receiveAllMsg();
|
||||
void receiveOutstandingMsg();
|
||||
private:
|
||||
SP_PKG fInsertPkgQueue;
|
||||
boost::condition condvar;
|
||||
execplan::CalpontSystemCatalog::SCN fTxnid;
|
||||
int fErrorCode;
|
||||
std::string fErrMsg;
|
||||
bool fLastpkg;
|
||||
bool fIsAutocommitOn;
|
||||
uint32_t fTableOid;
|
||||
uint64_t fUniqueId;
|
||||
BRM::DBRM* fDbrm;
|
||||
WriteEngine::WEClients* fWEClient;
|
||||
oam::OamCache *fOamcache;
|
||||
std::vector<uint32_t> fPMs; //active PMs
|
||||
batchloader::BatchLoader* fBatchLoader;
|
||||
std::map<unsigned, bool> fPmState;
|
||||
uint32_t fCurrentPMid;
|
||||
boost::shared_ptr<messageqcpp::ByteStream> bsIn;
|
||||
messageqcpp::ByteStream::byte tmp8;
|
||||
messageqcpp::ByteStream::quadbyte tmp32;
|
||||
std::vector<BulkSetHWMArgs> fHwmArgsAllPms;
|
||||
uint64_t fTableLockid;
|
||||
|
||||
|
||||
SP_PKG fInsertPkgQueue;
|
||||
boost::condition condvar;
|
||||
execplan::CalpontSystemCatalog::SCN fTxnid;
|
||||
int fErrorCode;
|
||||
std::string fErrMsg;
|
||||
bool fLastpkg;
|
||||
bool fIsAutocommitOn;
|
||||
uint32_t fTableOid;
|
||||
uint64_t fUniqueId;
|
||||
BRM::DBRM* fDbrm;
|
||||
WriteEngine::WEClients* fWEClient;
|
||||
oam::OamCache* fOamcache;
|
||||
std::vector<uint32_t> fPMs; //active PMs
|
||||
batchloader::BatchLoader* fBatchLoader;
|
||||
std::map<unsigned, bool> fPmState;
|
||||
uint32_t fCurrentPMid;
|
||||
boost::shared_ptr<messageqcpp::ByteStream> bsIn;
|
||||
messageqcpp::ByteStream::byte tmp8;
|
||||
messageqcpp::ByteStream::quadbyte tmp32;
|
||||
std::vector<BulkSetHWMArgs> fHwmArgsAllPms;
|
||||
uint64_t fTableLockid;
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace dmlprocessor
|
||||
|
Reference in New Issue
Block a user