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,67 +36,67 @@
|
||||
|
||||
namespace dmlpackage
|
||||
{
|
||||
/** @brief concrete implementation of a CalpontDMLPackage
|
||||
* Specifically for representing COMMAND DML Statements
|
||||
/** @brief concrete implementation of a CalpontDMLPackage
|
||||
* Specifically for representing COMMAND DML Statements
|
||||
*/
|
||||
class CommandDMLPackage : public CalpontDMLPackage
|
||||
{
|
||||
|
||||
public:
|
||||
/** @brief ctor
|
||||
*/
|
||||
class CommandDMLPackage : public CalpontDMLPackage
|
||||
EXPORT CommandDMLPackage();
|
||||
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT CommandDMLPackage( std::string dmlStatement, int sessionID );
|
||||
|
||||
/** @brief dtor
|
||||
*/
|
||||
EXPORT virtual ~CommandDMLPackage();
|
||||
|
||||
/** @brief write a CommandDMLPackage to a ByteStream
|
||||
*
|
||||
* @param bytestream the ByteStream to write to
|
||||
*/
|
||||
EXPORT int write(messageqcpp::ByteStream& bytestream);
|
||||
|
||||
/** @brief read CommandDMLPackage from bytestream
|
||||
*
|
||||
* @param bytestream the ByteStream to read from
|
||||
*/
|
||||
EXPORT int read(messageqcpp::ByteStream& bytestream);
|
||||
/** @brief do nothing
|
||||
*
|
||||
* @param buffer
|
||||
* @param columns the number of columns in the buffer
|
||||
* @param rows the number of rows in the buffer
|
||||
*/
|
||||
inline int buildFromBuffer(std::string& buffer, int columns = 0, int rows = 0)
|
||||
{
|
||||
|
||||
public:
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT CommandDMLPackage();
|
||||
|
||||
/** @brief ctor
|
||||
*/
|
||||
EXPORT CommandDMLPackage( std::string dmlStatement, int sessionID );
|
||||
|
||||
/** @brief dtor
|
||||
*/
|
||||
EXPORT virtual ~CommandDMLPackage();
|
||||
|
||||
/** @brief write a CommandDMLPackage to a ByteStream
|
||||
*
|
||||
* @param bytestream the ByteStream to write to
|
||||
*/
|
||||
EXPORT int write(messageqcpp::ByteStream& bytestream);
|
||||
|
||||
/** @brief read CommandDMLPackage from bytestream
|
||||
*
|
||||
* @param bytestream the ByteStream to read from
|
||||
*/
|
||||
EXPORT int read(messageqcpp::ByteStream& bytestream);
|
||||
/** @brief do nothing
|
||||
*
|
||||
* @param buffer
|
||||
* @param columns the number of columns in the buffer
|
||||
* @param rows the number of rows in the buffer
|
||||
*/
|
||||
inline int buildFromBuffer(std::string& buffer, int columns=0, int rows=0)
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
|
||||
/** @brief build a CommandDMLPackage from a CommandSqlStatement
|
||||
*/
|
||||
EXPORT int buildFromSqlStatement(SqlStatement& sqlStatement);
|
||||
|
||||
/** @brief build a InsertDMLPackage from MySQL buffer
|
||||
*
|
||||
* @param colNameList, tableValuesMap
|
||||
* @param rows the number of rows in the buffer
|
||||
*/
|
||||
int buildFromMysqlBuffer(ColNameList& colNameList, TableValuesMap& tableValuesMap, int columns, int rows, NullValuesBitset& nullValues)
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
return 1;
|
||||
};
|
||||
|
||||
/** @brief build a CommandDMLPackage from a CommandSqlStatement
|
||||
*/
|
||||
EXPORT int buildFromSqlStatement(SqlStatement& sqlStatement);
|
||||
|
||||
/** @brief build a InsertDMLPackage from MySQL buffer
|
||||
*
|
||||
* @param colNameList, tableValuesMap
|
||||
* @param rows the number of rows in the buffer
|
||||
*/
|
||||
int buildFromMysqlBuffer(ColNameList& colNameList, TableValuesMap& tableValuesMap, int columns, int rows, NullValuesBitset& nullValues)
|
||||
{
|
||||
return 1;
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#undef EXPORT
|
||||
|
Reference in New Issue
Block a user