patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -15,47 +15,33 @@
#include "sql/optimizer/ob_logical_operator.h"
namespace oceanbase {
namespace sql {
namespace oceanbase
{
namespace sql
{
class ObLogMonitoringDump : public ObLogicalOperator {
class ObLogMonitoringDump : public ObLogicalOperator
{
public:
ObLogMonitoringDump(ObLogPlan& plan) : ObLogicalOperator(plan), flags_(0), dst_op_line_id_(0)
{}
ObLogMonitoringDump(ObLogPlan &plan) :
ObLogicalOperator(plan), flags_(0), dst_op_line_id_(0)
{ }
virtual ~ObLogMonitoringDump() = default;
const char* get_name() const override;
virtual int print_my_plan_annotation(char* buf, int64_t& buf_len, int64_t& pos, ExplainType type) override;
virtual int copy_without_child(ObLogicalOperator*& out) override;
virtual int allocate_exchange_post(AllocExchContext* ctx) override;
virtual int compute_op_ordering() override;
virtual int transmit_op_ordering() override;
virtual int re_est_cost(const ObLogicalOperator* parent, double need_row_count, bool& re_est) override;
virtual int print_outline(planText& plan_text) override;
int print_tracing(planText& plan_text);
inline void set_flags(uint64_t flags)
{
flags_ = flags;
}
uint64_t get_flags()
{
return flags_;
}
void set_dst_op_id(uint64_t dst_op_id)
{
dst_op_line_id_ = dst_op_id;
}
uint64_t get_dst_op_id()
{
return dst_op_line_id_;
}
const char *get_name() const;
virtual int print_my_plan_annotation(char *buf, int64_t &buf_len, int64_t &pos, ExplainType type) override;
inline void set_flags(uint64_t flags) { flags_ = flags; }
uint64_t get_flags() { return flags_; }
void set_dst_op_id(uint64_t dst_op_id) { dst_op_line_id_ = dst_op_id; }
uint64_t get_dst_op_id() { return dst_op_line_id_; }
virtual int est_cost() override;
private:
uint64_t flags_;
// 这里的id只是的算子的line id,也就是explain看到的line编号
uint64_t dst_op_line_id_;
DISALLOW_COPY_AND_ASSIGN(ObLogMonitoringDump);
};
} // namespace sql
} // namespace oceanbase
}
}
#endif