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:
@ -36,152 +36,215 @@
|
||||
#endif
|
||||
namespace dmlpackage
|
||||
{
|
||||
typedef std::vector<std::string> ColValuesList;
|
||||
typedef std::vector<std::string> ColNameList;
|
||||
typedef std::map<uint32_t, ColValuesList> TableValuesMap;
|
||||
typedef std::bitset<4096> NullValuesBitset;
|
||||
typedef std::vector<std::string> ColValuesList;
|
||||
typedef std::vector<std::string> ColNameList;
|
||||
typedef std::map<uint32_t, ColValuesList> TableValuesMap;
|
||||
typedef std::bitset<4096> NullValuesBitset;
|
||||
|
||||
/** @brief describes the general interface
|
||||
* and implementation of a Vendor DML Statement
|
||||
/** @brief describes the general interface
|
||||
* and implementation of a Vendor DML Statement
|
||||
*/
|
||||
class VendorDMLStatement
|
||||
{
|
||||
|
||||
public:
|
||||
/** @brief ctor
|
||||
*/
|
||||
class VendorDMLStatement
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int sessionID);
|
||||
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, int sessionID);
|
||||
|
||||
/** @brief old ctor!
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, std::string tName,
|
||||
std::string schema, int rows, int columns, std::string buf,
|
||||
int sessionID);
|
||||
|
||||
/** @brief ctor for mysql
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, std::string tName, std::string schema, int rows, int columns,
|
||||
ColNameList& colNameList, TableValuesMap& tableValuesMap, NullValuesBitset& nullValues, int sessionID);
|
||||
|
||||
/** @brief destructor
|
||||
*/
|
||||
EXPORT ~VendorDMLStatement();
|
||||
|
||||
/** @brief Get the table name
|
||||
*/
|
||||
inline std::string get_TableName() const
|
||||
{
|
||||
return fTableName;
|
||||
}
|
||||
|
||||
public:
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int sessionID);
|
||||
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, int sessionID);
|
||||
/** @brief Set the table name
|
||||
*/
|
||||
inline void set_TableName( std::string value )
|
||||
{
|
||||
fTableName = value;
|
||||
}
|
||||
|
||||
/** @brief old ctor!
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, std::string tName,
|
||||
std::string schema, int rows, int columns, std::string buf,
|
||||
int sessionID);
|
||||
|
||||
/** @brief ctor for mysql
|
||||
*/
|
||||
EXPORT VendorDMLStatement(std::string dmlstatement, int stmttype, std::string tName, std::string schema, int rows, int columns,
|
||||
ColNameList& colNameList, TableValuesMap& tableValuesMap, NullValuesBitset& nullValues, int sessionID);
|
||||
|
||||
/** @brief destructor
|
||||
*/
|
||||
EXPORT ~VendorDMLStatement();
|
||||
/** @brief Get the schema name
|
||||
*/
|
||||
inline std::string get_SchemaName() const
|
||||
{
|
||||
return fSchema;
|
||||
}
|
||||
|
||||
/** @brief Get the table name
|
||||
*/
|
||||
inline std::string get_TableName() const { return fTableName; }
|
||||
/** @brief Set the schema name
|
||||
*/
|
||||
inline void set_SchemaName( std::string value )
|
||||
{
|
||||
fSchema = value;
|
||||
}
|
||||
|
||||
/** @brief Set the table name
|
||||
*/
|
||||
inline void set_TableName( std::string value ) { fTableName = value; }
|
||||
/** @brief Get the DML statVendorDMLStatement classement type
|
||||
*/
|
||||
inline int get_DMLStatementType() const
|
||||
{
|
||||
return fDMLStatementType;
|
||||
}
|
||||
|
||||
/** @brief Get the schema name
|
||||
*/
|
||||
inline std::string get_SchemaName() const { return fSchema; }
|
||||
/** @brief Set the DML statement type
|
||||
*/
|
||||
inline void set_DMLStatementType( int value )
|
||||
{
|
||||
fDMLStatementType = value;
|
||||
}
|
||||
|
||||
/** @brief Set the schema name
|
||||
*/
|
||||
inline void set_SchemaName( std::string value ) { fSchema = value; }
|
||||
/** @brief Get the DML statement
|
||||
*/
|
||||
inline const std::string get_DMLStatement() const
|
||||
{
|
||||
return fDMLStatement;
|
||||
}
|
||||
|
||||
/** @brief Get the DML statVendorDMLStatement classement type
|
||||
*/
|
||||
inline int get_DMLStatementType() const { return fDMLStatementType; }
|
||||
/** @brief Set the DML statVendorDMLStatement classement
|
||||
*/
|
||||
inline void set_DMLStatement( std::string dmlStatement )
|
||||
{
|
||||
fDMLStatement = dmlStatement;
|
||||
}
|
||||
|
||||
/** @brief Set the DML statement type
|
||||
*/
|
||||
inline void set_DMLStatementType( int value ) { fDMLStatementType = value; }
|
||||
/** @brief Get the number of rows
|
||||
*/
|
||||
inline int get_Rows() const
|
||||
{
|
||||
return fRows;
|
||||
}
|
||||
|
||||
/** @brief Get the DML statement
|
||||
*/
|
||||
inline const std::string get_DMLStatement() const { return fDMLStatement; }
|
||||
/** @brief Set the number of rows
|
||||
*/
|
||||
inline void set_Rows( int value )
|
||||
{
|
||||
fRows = value;
|
||||
}
|
||||
|
||||
/** @brief Set the DML statVendorDMLStatement classement
|
||||
*/
|
||||
inline void set_DMLStatement( std::string dmlStatement ) { fDMLStatement = dmlStatement; }
|
||||
/** @brief Get the number of columns
|
||||
*/
|
||||
inline int get_Columns() const
|
||||
{
|
||||
return fColumns;
|
||||
}
|
||||
|
||||
/** @brief Get the number of rows
|
||||
*/
|
||||
inline int get_Rows() const { return fRows; }
|
||||
/** @brief Set the number of columns
|
||||
*/
|
||||
inline void set_Columns( int value )
|
||||
{
|
||||
fColumns = value;
|
||||
}
|
||||
|
||||
/** @brief Set the number of rows
|
||||
*/
|
||||
inline void set_Rows( int value ) { fRows = value; }
|
||||
/** @brief Get the data buffer
|
||||
*/
|
||||
inline std::string& get_DataBuffer()
|
||||
{
|
||||
return fDataBuffer;
|
||||
}
|
||||
|
||||
/** @brief Get the number of columns
|
||||
*/
|
||||
inline int get_Columns() const { return fColumns; }
|
||||
/** @brief Set the data buffer
|
||||
*/
|
||||
inline void set_DataBuffer( std::string value )
|
||||
{
|
||||
fDataBuffer = value;
|
||||
}
|
||||
/** @brief Get the session ID
|
||||
*/
|
||||
inline int get_SessionID()
|
||||
{
|
||||
return fSessionID;
|
||||
}
|
||||
|
||||
/** @brief Set the number of columns
|
||||
*/
|
||||
inline void set_Columns( int value ) { fColumns = value; }
|
||||
inline NullValuesBitset& get_nullValues()
|
||||
{
|
||||
return fNullValues;
|
||||
}
|
||||
|
||||
/** @brief Get the data buffer
|
||||
*/
|
||||
inline std::string& get_DataBuffer() { return fDataBuffer; }
|
||||
/** @brief Set the session ID
|
||||
*/
|
||||
inline void set_SessionID( int value )
|
||||
{
|
||||
fSessionID = value;
|
||||
}
|
||||
|
||||
/** @brief Set the data buffer
|
||||
*/
|
||||
inline void set_DataBuffer( std::string value ) { fDataBuffer= value; }
|
||||
/** @brief Get the session ID
|
||||
*/
|
||||
inline int get_SessionID() { return fSessionID; }
|
||||
inline ColNameList& get_ColNames()
|
||||
{
|
||||
return fColNameList;
|
||||
}
|
||||
inline TableValuesMap& get_values()
|
||||
{
|
||||
return fTableValuesMap;
|
||||
}
|
||||
/** @brief get the logging flag
|
||||
*/
|
||||
inline const bool get_Logging() const
|
||||
{
|
||||
return fLogging;
|
||||
}
|
||||
|
||||
inline NullValuesBitset& get_nullValues() { return fNullValues; }
|
||||
/** @brief set the logging flag
|
||||
*
|
||||
* @param logging the logging flag to set
|
||||
*/
|
||||
inline void set_Logging( bool logging )
|
||||
{
|
||||
fLogging = logging;
|
||||
}
|
||||
|
||||
/** @brief Set the session ID
|
||||
*/
|
||||
inline void set_SessionID( int value ) { fSessionID = value; }
|
||||
/** @brief get the logging flag
|
||||
*/
|
||||
inline const bool get_Logending() const
|
||||
{
|
||||
return fLogending;
|
||||
}
|
||||
|
||||
inline ColNameList& get_ColNames() { return fColNameList; }
|
||||
inline TableValuesMap& get_values() { return fTableValuesMap; }
|
||||
/** @brief get the logging flag
|
||||
*/
|
||||
inline const bool get_Logging() const { return fLogging; }
|
||||
|
||||
/** @brief set the logging flag
|
||||
*
|
||||
* @param logging the logging flag to set
|
||||
*/
|
||||
inline void set_Logging( bool logging )
|
||||
{
|
||||
fLogging = logging;
|
||||
}
|
||||
/** @brief set the logending flag
|
||||
*
|
||||
* @param logending the logending flag to set
|
||||
*/
|
||||
inline void set_Logending( bool logending )
|
||||
{
|
||||
fLogending = logending;
|
||||
}
|
||||
|
||||
/** @brief get the logging flag
|
||||
*/
|
||||
inline const bool get_Logending() const { return fLogending; }
|
||||
|
||||
/** @brief set the logending flag
|
||||
*
|
||||
* @param logending the logending flag to set
|
||||
*/
|
||||
inline void set_Logending( bool logending )
|
||||
{
|
||||
fLogending = logending;
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
|
||||
private:
|
||||
std::string fDMLStatement;
|
||||
int fDMLStatementType;
|
||||
std::string fTableName;
|
||||
std::string fSchema;
|
||||
int fRows;
|
||||
int fColumns;
|
||||
std::string fDataBuffer;
|
||||
ColNameList fColNameList;
|
||||
TableValuesMap fTableValuesMap;
|
||||
NullValuesBitset fNullValues;
|
||||
int fSessionID;
|
||||
bool fLogging;
|
||||
bool fLogending;
|
||||
private:
|
||||
std::string fDMLStatement;
|
||||
int fDMLStatementType;
|
||||
std::string fTableName;
|
||||
std::string fSchema;
|
||||
int fRows;
|
||||
int fColumns;
|
||||
std::string fDataBuffer;
|
||||
ColNameList fColNameList;
|
||||
TableValuesMap fTableValuesMap;
|
||||
NullValuesBitset fNullValues;
|
||||
int fSessionID;
|
||||
bool fLogging;
|
||||
bool fLogending;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user