You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Reformat all code to coding standard
This commit is contained in:
75
dbcon/execplan/wf_frame.h
Executable file → Normal file
75
dbcon/execplan/wf_frame.h
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
Copyright (c) 2017, MariaDB
|
||||
Copyright (C) 2014 InfiniDB, Inc.
|
||||
|
||||
@ -29,46 +29,47 @@
|
||||
/**
|
||||
* Namespace
|
||||
*/
|
||||
namespace execplan {
|
||||
namespace execplan
|
||||
{
|
||||
|
||||
// This enum is made consistant with mysql Item_window_func
|
||||
enum WF_FRAME
|
||||
{
|
||||
WF_PRECEDING = 0,
|
||||
WF_FOLLOWING,
|
||||
WF_UNBOUNDED_PRECEDING,
|
||||
WF_UNBOUNDED_FOLLOWING,
|
||||
WF_CURRENT_ROW,
|
||||
WF_UNKNOWN
|
||||
WF_PRECEDING = 0,
|
||||
WF_FOLLOWING,
|
||||
WF_UNBOUNDED_PRECEDING,
|
||||
WF_UNBOUNDED_FOLLOWING,
|
||||
WF_CURRENT_ROW,
|
||||
WF_UNKNOWN
|
||||
};
|
||||
|
||||
struct WF_Boundary
|
||||
{
|
||||
WF_Boundary() {}
|
||||
WF_Boundary(WF_FRAME frame):fFrame(frame) {}
|
||||
~WF_Boundary() {}
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
SRCP fVal; /// has to evaluate to unsigned value
|
||||
SRCP fBound; /// order by col +, -, date_add or date_sub for RANGE window
|
||||
enum WF_FRAME fFrame;
|
||||
WF_Boundary() {}
|
||||
WF_Boundary(WF_FRAME frame): fFrame(frame) {}
|
||||
~WF_Boundary() {}
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
SRCP fVal; /// has to evaluate to unsigned value
|
||||
SRCP fBound; /// order by col +, -, date_add or date_sub for RANGE window
|
||||
enum WF_FRAME fFrame;
|
||||
};
|
||||
|
||||
struct WF_Frame
|
||||
{
|
||||
WF_Frame(): fIsRange(true)
|
||||
{
|
||||
fStart.fFrame = WF_UNBOUNDED_PRECEDING;
|
||||
fEnd.fFrame = WF_UNBOUNDED_FOLLOWING;
|
||||
}
|
||||
~WF_Frame() {}
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
WF_Boundary fStart;
|
||||
WF_Boundary fEnd;
|
||||
bool fIsRange; /// RANGE or ROWS
|
||||
WF_Frame(): fIsRange(true)
|
||||
{
|
||||
fStart.fFrame = WF_UNBOUNDED_PRECEDING;
|
||||
fEnd.fFrame = WF_UNBOUNDED_FOLLOWING;
|
||||
}
|
||||
~WF_Frame() {}
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
WF_Boundary fStart;
|
||||
WF_Boundary fEnd;
|
||||
bool fIsRange; /// RANGE or ROWS
|
||||
};
|
||||
|
||||
/**
|
||||
@ -76,14 +77,14 @@ struct WF_Frame
|
||||
*/
|
||||
struct WF_OrderBy
|
||||
{
|
||||
WF_OrderBy() {}
|
||||
WF_OrderBy(std::vector<SRCP> orders): fOrders(orders) {}
|
||||
~WF_OrderBy() {};
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
std::vector<SRCP> fOrders;
|
||||
WF_Frame fFrame;
|
||||
WF_OrderBy() {}
|
||||
WF_OrderBy(std::vector<SRCP> orders): fOrders(orders) {}
|
||||
~WF_OrderBy() {};
|
||||
const std::string toString() const;
|
||||
void serialize(messageqcpp::ByteStream&) const;
|
||||
void unserialize(messageqcpp::ByteStream&);
|
||||
std::vector<SRCP> fOrders;
|
||||
WF_Frame fFrame;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user