1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -37,7 +37,6 @@ class ByteStream;
namespace execplan
{
class TreeNode;
class ParseTree;
class CalpontExecutionPlan;
@ -50,123 +49,120 @@ class CalpontExecutionPlan;
class ObjectReader
{
public:
class UnserializeException : public std::exception
{
public:
UnserializeException(std::string) throw();
virtual ~UnserializeException() throw();
virtual const char* what() const throw();
public:
private:
std::string fWhat;
};
class UnserializeException : public std::exception
{
public:
UnserializeException(std::string) throw();
virtual ~UnserializeException() throw();
virtual const char* what() const throw();
private:
std::string fWhat;
};
/** @brief Enumerates classes supporting serialization
*
* This defines one constant for each class that supports
* serialization.
*/
enum CLASSID
{
ZERO, // an appropriate initializer
NULL_CLASS, // to denote that some member is NULL
/** @brief Enumerates classes supporting serialization
*
* This defines one constant for each class that supports
* serialization.
*/
enum CLASSID
{
ZERO, // an appropriate initializer
NULL_CLASS, // to denote that some member is NULL
/**** TreeNodes */
TREENODE,
TREENODEIMPL,
RETURNEDCOLUMN,
AGGREGATECOLUMN,
GROUPCONCATCOLUMN,
ARITHMETICCOLUMN,
CONSTANTCOLUMN,
FUNCTIONCOLUMN,
ROWCOLUMN,
WINDOWFUNCTIONCOLUMN,
PSEUDOCOLUMN,
/**** TreeNodes */
TREENODE,
TREENODEIMPL,
RETURNEDCOLUMN,
AGGREGATECOLUMN,
GROUPCONCATCOLUMN,
ARITHMETICCOLUMN,
CONSTANTCOLUMN,
FUNCTIONCOLUMN,
ROWCOLUMN,
WINDOWFUNCTIONCOLUMN,
PSEUDOCOLUMN,
SIMPLECOLUMN,
SIMPLECOLUMN_INT1,
SIMPLECOLUMN_INT2,
SIMPLECOLUMN_INT4,
SIMPLECOLUMN_INT8,
SIMPLECOLUMN_UINT1,
SIMPLECOLUMN_UINT2,
SIMPLECOLUMN_UINT4,
SIMPLECOLUMN_UINT8,
SIMPLECOLUMN_DECIMAL1,
SIMPLECOLUMN_DECIMAL2,
SIMPLECOLUMN_DECIMAL4,
SIMPLECOLUMN_DECIMAL8,
SIMPLECOLUMN,
SIMPLECOLUMN_INT1,
SIMPLECOLUMN_INT2,
SIMPLECOLUMN_INT4,
SIMPLECOLUMN_INT8,
SIMPLECOLUMN_UINT1,
SIMPLECOLUMN_UINT2,
SIMPLECOLUMN_UINT4,
SIMPLECOLUMN_UINT8,
SIMPLECOLUMN_DECIMAL1,
SIMPLECOLUMN_DECIMAL2,
SIMPLECOLUMN_DECIMAL4,
SIMPLECOLUMN_DECIMAL8,
FILTER,
CONDITIONFILTER,
EXISTSFILTER,
SELECTFILTER,
SIMPLEFILTER,
SIMPLESCALARFILTER,
FILTER,
CONDITIONFILTER,
EXISTSFILTER,
SELECTFILTER,
SIMPLEFILTER,
SIMPLESCALARFILTER,
OPERATOR,
ARITHMETICOPERATOR,
PREDICATEOPERATOR,
LOGICOPERATOR,
OPERATOR,
ARITHMETICOPERATOR,
PREDICATEOPERATOR,
LOGICOPERATOR,
/**** /TreeNodes */
/**** /TreeNodes */
PARSETREE,
CALPONTSELECTEXECUTIONPLAN,
CONSTANTFILTER,
OUTERJOINONFILTER,
PARSETREE,
CALPONTSELECTEXECUTIONPLAN,
CONSTANTFILTER,
OUTERJOINONFILTER,
/** UDAF SDK */
MCSV1_CONTEXT,
UDAFCOLUMN,
/** UDAF SDK */
MCSV1_CONTEXT,
UDAFCOLUMN,
/** ANALYZE TABLE */
MCSANALYZETBLEXECUTIONPLAN,
};
/** ANALYZE TABLE */
MCSANALYZETBLEXECUTIONPLAN,
};
typedef uint8_t id_t; // expand as necessary
typedef uint8_t id_t; //expand as necessary
/** @brief Creates a new TreeNode object from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated TreeNode
*/
static TreeNode* createTreeNode(messageqcpp::ByteStream& b);
/** @brief Creates a new TreeNode object from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated TreeNode
*/
static TreeNode* createTreeNode(messageqcpp::ByteStream& b);
/** @brief Creates a new ParseTree from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated ParseTree
*/
static ParseTree* createParseTree(messageqcpp::ByteStream& b);
/** @brief Creates a new ParseTree from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated ParseTree
*/
static ParseTree* createParseTree(messageqcpp::ByteStream& b);
/** @brief Creates a new CalpontExecutionPlan from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated CalpontExecutionPlan
*/
static CalpontExecutionPlan* createExecutionPlan(messageqcpp::ByteStream& b);
/** @brief Creates a new CalpontExecutionPlan from the ByteStream
*
* @param b The ByteStream to create it from
* @return A newly allocated CalpontExecutionPlan
*/
static CalpontExecutionPlan* createExecutionPlan(messageqcpp::ByteStream& b);
/** @brief Serialize() for ParseTrees
*
* This function effectively serializes a ParseTree.
* @param tree The ParseTree to write out
* @param b The ByteStream to write tree to
*/
static void writeParseTree(const ParseTree* tree, messageqcpp::ByteStream& b);
/** @brief Serialize() for ParseTrees
*
* This function effectively serializes a ParseTree.
* @param tree The ParseTree to write out
* @param b The ByteStream to write tree to
*/
static void writeParseTree(const ParseTree* tree,
messageqcpp::ByteStream& b);
/** @brief Verify the type of the next object in the ByteStream
*
* @param b The ByteStream to read from
* @param type The type it should be
* @throw UnserializeException if the type does not match; this is a fatal error.
*/
static void checkType(messageqcpp::ByteStream& b, const CLASSID type);
/** @brief Verify the type of the next object in the ByteStream
*
* @param b The ByteStream to read from
* @param type The type it should be
* @throw UnserializeException if the type does not match; this is a fatal error.
*/
static void checkType(messageqcpp::ByteStream& b, const CLASSID type);
};
}
} // namespace execplan