1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-24 17:47:42 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@@ -27,68 +27,69 @@ using namespace std;
#include "filerequest.h"
namespace dbbc {
namespace dbbc
{
fileRequest::fileRequest() :
data(0), fLBID(-1), fVer(-1), fFlg(false), fTxn(-1), fRqstType(LBIDREQUEST), fCompType(0),
cache(true), wasVersioned(false)
data(0), fLBID(-1), fVer(-1), fFlg(false), fTxn(-1), fRqstType(LBIDREQUEST), fCompType(0),
cache(true), wasVersioned(false)
{
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
}
fileRequest::fileRequest(BRM::LBID_t lbid, const BRM::QueryContext &ver, bool flg, BRM::VER_t txn, int compType,
uint8_t *ptr, bool cacheIt) :
data(ptr), fLBID(lbid), fVer(ver), fFlg(flg), fTxn(txn), fRqstType(LBIDREQUEST), fCompType(compType),
cache(cacheIt), wasVersioned(false)
fileRequest::fileRequest(BRM::LBID_t lbid, const BRM::QueryContext& ver, bool flg, BRM::VER_t txn, int compType,
uint8_t* ptr, bool cacheIt) :
data(ptr), fLBID(lbid), fVer(ver), fFlg(flg), fTxn(txn), fRqstType(LBIDREQUEST), fCompType(compType),
cache(cacheIt), wasVersioned(false)
{
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
fLength = 1;
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
fLength = 1;
}
fileRequest::fileRequest(const BRM::InlineLBIDRange& range, const BRM::QueryContext &ver, BRM::VER_t txn, int compType) :
data(0), fLBID(range.start), fVer(ver), fFlg(false), fTxn(txn), fLength(range.size),
fRqstType(RANGEREQUEST), fCompType(compType), cache(true), wasVersioned(false)
fileRequest::fileRequest(const BRM::InlineLBIDRange& range, const BRM::QueryContext& ver, BRM::VER_t txn, int compType) :
data(0), fLBID(range.start), fVer(ver), fFlg(false), fTxn(txn), fLength(range.size),
fRqstType(RANGEREQUEST), fCompType(compType), cache(true), wasVersioned(false)
{
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
fLength = range.size;
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
fLength = range.size;
}
fileRequest::fileRequest(const fileRequest& blk)
{
fLBID = blk.fLBID;
fVer = blk.fVer;
fTxn = blk.fTxn;
fFlg = blk.fFlg;
fRqstType = blk.fRqstType;
fRqstStatusString = blk.fRqstStatusString;
data = blk.data;
fCompType = blk.fCompType;
cache = blk.cache;
wasVersioned = blk.wasVersioned;
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
fLBID = blk.fLBID;
fVer = blk.fVer;
fTxn = blk.fTxn;
fFlg = blk.fFlg;
fRqstType = blk.fRqstType;
fRqstStatusString = blk.fRqstStatusString;
data = blk.data;
fCompType = blk.fCompType;
cache = blk.cache;
wasVersioned = blk.wasVersioned;
init(); //resets fFRPredicate, fLength, fblksRead, fblksLoaded, fRqstStatus
}
void fileRequest::init()
{
fFRPredicate = INIT;
fLength = 0;
fblksRead = 0;
fblksLoaded = 0;
fRqstStatus = SUCCESSFUL;
fFRPredicate = INIT;
fLength = 0;
fblksRead = 0;
fblksLoaded = 0;
fRqstStatus = SUCCESSFUL;
}
ostream& operator<<(ostream& os, const fileRequest& rhs)
{
os
<< "LBID: " << rhs.fLBID
<< " ver: " << rhs.fVer
<< " Txn: " << rhs.fTxn
<< " len: " << rhs.fLength
<< " read: " << rhs.fblksRead
<< " load: " << rhs.fblksLoaded
<< " ct: " << rhs.fCompType
;
return os;
os
<< "LBID: " << rhs.fLBID
<< " ver: " << rhs.fVer
<< " Txn: " << rhs.fTxn
<< " len: " << rhs.fLength
<< " read: " << rhs.fblksRead
<< " load: " << rhs.fblksLoaded
<< " ct: " << rhs.fCompType
;
return os;
}
}