You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -28,37 +28,37 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string JOBDIR("job");
|
||||
const std::string JOBDIR("job");
|
||||
}
|
||||
|
||||
namespace WriteEngine
|
||||
{
|
||||
/* static */ const std::string XMLGenData::DELIMITER ("-d");
|
||||
/* static */ const std::string XMLGenData::DESCRIPTION ("-s");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::ENCLOSED_BY_CHAR ("-E");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::ESCAPE_CHAR ("-C");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::JOBID ("-j");
|
||||
/* static */ const std::string XMLGenData::MAXERROR ("-e");
|
||||
/* static */ const std::string XMLGenData::NAME ("-n");
|
||||
/* static */ const std::string XMLGenData::PATH ("-p");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::RPT_DEBUG ("-b");
|
||||
/* static */ const std::string XMLGenData::USER ("-u");
|
||||
/* static */ const std::string XMLGenData::NO_OF_READ_BUFFER ("-r");
|
||||
/* static */ const std::string XMLGenData::READ_BUFFER_CAPACITY("-c");
|
||||
/* static */ const std::string XMLGenData::WRITE_BUFFER_SIZE ("-w");
|
||||
/* static */ const std::string XMLGenData::EXT ("-x");
|
||||
/* static */ const std::string XMLGenData::DELIMITER ("-d");
|
||||
/* static */ const std::string XMLGenData::DESCRIPTION ("-s");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::ENCLOSED_BY_CHAR ("-E");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::ESCAPE_CHAR ("-C");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::JOBID ("-j");
|
||||
/* static */ const std::string XMLGenData::MAXERROR ("-e");
|
||||
/* static */ const std::string XMLGenData::NAME ("-n");
|
||||
/* static */ const std::string XMLGenData::PATH ("-p");
|
||||
#ifdef _MSC_VER
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
/* static */ const std::string XMLGenData::RPT_DEBUG ("-b");
|
||||
/* static */ const std::string XMLGenData::USER ("-u");
|
||||
/* static */ const std::string XMLGenData::NO_OF_READ_BUFFER ("-r");
|
||||
/* static */ const std::string XMLGenData::READ_BUFFER_CAPACITY("-c");
|
||||
/* static */ const std::string XMLGenData::WRITE_BUFFER_SIZE ("-w");
|
||||
/* static */ const std::string XMLGenData::EXT ("-x");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// XMLGenData constructor
|
||||
@ -66,31 +66,31 @@ namespace WriteEngine
|
||||
//------------------------------------------------------------------------------
|
||||
XMLGenData::XMLGenData( )
|
||||
{
|
||||
fParms.insert(ParmList::value_type(DELIMITER,std::string("|")));
|
||||
fParms.insert(ParmList::value_type(DESCRIPTION,std::string()));
|
||||
fParms.insert(ParmList::value_type(ENCLOSED_BY_CHAR,std::string("")));
|
||||
fParms.insert(ParmList::value_type(ESCAPE_CHAR,std::string("\\")));
|
||||
fParms.insert(ParmList::value_type(JOBID,std::string("299")));
|
||||
fParms.insert(ParmList::value_type(MAXERROR,std::string("10")));
|
||||
fParms.insert(ParmList::value_type(NAME,std::string()));
|
||||
fParms.insert(ParmList::value_type(DELIMITER, std::string("|")));
|
||||
fParms.insert(ParmList::value_type(DESCRIPTION, std::string()));
|
||||
fParms.insert(ParmList::value_type(ENCLOSED_BY_CHAR, std::string("")));
|
||||
fParms.insert(ParmList::value_type(ESCAPE_CHAR, std::string("\\")));
|
||||
fParms.insert(ParmList::value_type(JOBID, std::string("299")));
|
||||
fParms.insert(ParmList::value_type(MAXERROR, std::string("10")));
|
||||
fParms.insert(ParmList::value_type(NAME, std::string()));
|
||||
#ifdef _MSC_VER
|
||||
std::string br;
|
||||
br = Config::getBulkRoot();
|
||||
boost::filesystem::path p(br);
|
||||
std::string br;
|
||||
br = Config::getBulkRoot();
|
||||
boost::filesystem::path p(br);
|
||||
#else
|
||||
boost::filesystem::path p( std::string(Config::getBulkRoot()) );
|
||||
#endif
|
||||
p /= JOBDIR;
|
||||
fParms.insert(ParmList::value_type(PATH, p.string()));
|
||||
|
||||
fParms.insert(ParmList::value_type(RPT_DEBUG,std::string("0")));
|
||||
fParms.insert(ParmList::value_type(USER,std::string()));
|
||||
fParms.insert(ParmList::value_type(NO_OF_READ_BUFFER,std::string("5")));
|
||||
fParms.insert(ParmList::value_type(RPT_DEBUG, std::string("0")));
|
||||
fParms.insert(ParmList::value_type(USER, std::string()));
|
||||
fParms.insert(ParmList::value_type(NO_OF_READ_BUFFER, std::string("5")));
|
||||
fParms.insert(ParmList::value_type(READ_BUFFER_CAPACITY,
|
||||
std::string("1048576")));
|
||||
std::string("1048576")));
|
||||
fParms.insert(ParmList::value_type(WRITE_BUFFER_SIZE,
|
||||
std::string("10485760")));
|
||||
fParms.insert(ParmList::value_type(EXT,std::string("tbl")));
|
||||
std::string("10485760")));
|
||||
fParms.insert(ParmList::value_type(EXT, std::string("tbl")));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@ -107,6 +107,7 @@ XMLGenData::~XMLGenData( )
|
||||
std::string XMLGenData::getParm(const std::string& key) const
|
||||
{
|
||||
ParmList::const_iterator p = fParms.find(key);
|
||||
|
||||
if (fParms.end() != p)
|
||||
return p->second;
|
||||
else
|
||||
|
Reference in New Issue
Block a user