You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -14,77 +14,77 @@
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/*******************************************************************************
|
||||
* $Id$
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
/*
|
||||
* we_brmupdater.h
|
||||
*
|
||||
* Created on: Dec 13, 2011
|
||||
* Author: bpaul
|
||||
*/
|
||||
|
||||
#ifndef WE_BRMUPDATER_H_
|
||||
#define WE_BRMUPDATER_H_
|
||||
|
||||
|
||||
namespace WriteEngine
|
||||
{
|
||||
|
||||
class WESDHandler; // forward deceleration
|
||||
|
||||
|
||||
class WEBrmUpdater
|
||||
{
|
||||
public:
|
||||
WEBrmUpdater(WESDHandler& Ref): fRef(Ref), fpBrm(0) {}
|
||||
virtual ~WEBrmUpdater() {}
|
||||
|
||||
public:
|
||||
bool updateCasualPartitionAndHighWaterMarkInBRM();
|
||||
int updateCPAndHWMInBRM();
|
||||
int updateCasualPartitionInBRM();
|
||||
int updateHighWaterMarkInBRM();
|
||||
bool prepareCasualPartitionInfo();
|
||||
bool prepareHighWaterMarkInfo();
|
||||
|
||||
bool createBrmConnection()
|
||||
{
|
||||
fpBrm = new BRM::DBRM();
|
||||
return (fpBrm)?true:false;
|
||||
}
|
||||
void releaseBrmConnection()
|
||||
{
|
||||
delete fpBrm;
|
||||
fpBrm = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public:
|
||||
static bool prepareRowsInsertedInfo(std::string Entry, int64_t& TotRows,
|
||||
int64_t& InsRows);
|
||||
static bool prepareColumnOutOfRangeInfo(std::string Entry, int& ColNum,
|
||||
CalpontSystemCatalog::ColDataType& ColType,
|
||||
std::string& ColName, int& OorValues);
|
||||
static bool prepareErrorFileInfo(std::string Entry, std::string& ErrFileName);
|
||||
static bool prepareBadDataFileInfo(std::string Entry, std::string& BadFileName);
|
||||
|
||||
private:
|
||||
WESDHandler& fRef;
|
||||
BRM::DBRM* fpBrm;
|
||||
|
||||
|
||||
//BRM::CPInfoMergeList_t fCPInfo;
|
||||
std::vector<BRM::CPInfoMerge> fCPInfo;
|
||||
std::vector<BRM::BulkSetHWMArg> fHWMInfo;
|
||||
std::vector<BRM::CPInfo> fCPInfoData;
|
||||
|
||||
|
||||
};
|
||||
|
||||
} /* namespace WriteEngine */
|
||||
#endif /* WE_BRMUPDATER_H_ */
|
||||
|
||||
/*******************************************************************************
|
||||
* $Id$
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
/*
|
||||
* we_brmupdater.h
|
||||
*
|
||||
* Created on: Dec 13, 2011
|
||||
* Author: bpaul
|
||||
*/
|
||||
|
||||
#ifndef WE_BRMUPDATER_H_
|
||||
#define WE_BRMUPDATER_H_
|
||||
|
||||
|
||||
namespace WriteEngine
|
||||
{
|
||||
|
||||
class WESDHandler; // forward deceleration
|
||||
|
||||
|
||||
class WEBrmUpdater
|
||||
{
|
||||
public:
|
||||
WEBrmUpdater(WESDHandler& Ref): fRef(Ref), fpBrm(0) {}
|
||||
virtual ~WEBrmUpdater() {}
|
||||
|
||||
public:
|
||||
bool updateCasualPartitionAndHighWaterMarkInBRM();
|
||||
int updateCPAndHWMInBRM();
|
||||
int updateCasualPartitionInBRM();
|
||||
int updateHighWaterMarkInBRM();
|
||||
bool prepareCasualPartitionInfo();
|
||||
bool prepareHighWaterMarkInfo();
|
||||
|
||||
bool createBrmConnection()
|
||||
{
|
||||
fpBrm = new BRM::DBRM();
|
||||
return (fpBrm) ? true : false;
|
||||
}
|
||||
void releaseBrmConnection()
|
||||
{
|
||||
delete fpBrm;
|
||||
fpBrm = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public:
|
||||
static bool prepareRowsInsertedInfo(std::string Entry, int64_t& TotRows,
|
||||
int64_t& InsRows);
|
||||
static bool prepareColumnOutOfRangeInfo(std::string Entry, int& ColNum,
|
||||
CalpontSystemCatalog::ColDataType& ColType,
|
||||
std::string& ColName, int& OorValues);
|
||||
static bool prepareErrorFileInfo(std::string Entry, std::string& ErrFileName);
|
||||
static bool prepareBadDataFileInfo(std::string Entry, std::string& BadFileName);
|
||||
|
||||
private:
|
||||
WESDHandler& fRef;
|
||||
BRM::DBRM* fpBrm;
|
||||
|
||||
|
||||
//BRM::CPInfoMergeList_t fCPInfo;
|
||||
std::vector<BRM::CPInfoMerge> fCPInfo;
|
||||
std::vector<BRM::BulkSetHWMArg> fHWMInfo;
|
||||
std::vector<BRM::CPInfo> fCPInfoData;
|
||||
|
||||
|
||||
};
|
||||
|
||||
} /* namespace WriteEngine */
|
||||
#endif /* WE_BRMUPDATER_H_ */
|
||||
|
Reference in New Issue
Block a user