patch 4.0
This commit is contained in:
@ -15,45 +15,30 @@
|
||||
|
||||
#include "sql/optimizer/ob_logical_operator.h"
|
||||
#include "sql/optimizer/ob_log_operator_factory.h"
|
||||
#include "sql/optimizer/ob_log_plan.h"
|
||||
#include "sql/resolver/dml/ob_sql_hint.h"
|
||||
|
||||
namespace oceanbase {
|
||||
namespace sql {
|
||||
class ObLogTempTableInsert : public ObLogicalOperator {
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace sql
|
||||
{
|
||||
class ObLogTempTableInsert : public ObLogicalOperator
|
||||
{
|
||||
public:
|
||||
ObLogTempTableInsert(ObLogPlan& plan);
|
||||
ObLogTempTableInsert(ObLogPlan &plan);
|
||||
virtual ~ObLogTempTableInsert();
|
||||
|
||||
virtual int copy_without_child(ObLogicalOperator*& out) override
|
||||
{
|
||||
return clone(out);
|
||||
}
|
||||
virtual int allocate_exchange_post(AllocExchContext* ctx) override;
|
||||
virtual int compute_sharding_info() override;
|
||||
virtual int compute_op_ordering() override;
|
||||
virtual int est_cost() override;
|
||||
virtual bool is_block_op() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
inline void set_ref_table_id(uint64_t ref_table_id)
|
||||
{
|
||||
ref_table_id_ = ref_table_id;
|
||||
}
|
||||
uint64_t get_ref_table_id() const
|
||||
{
|
||||
return ref_table_id_;
|
||||
}
|
||||
inline common::ObString& get_table_name()
|
||||
{
|
||||
return temp_table_name_;
|
||||
}
|
||||
|
||||
virtual bool is_block_op() const override { return true; }
|
||||
inline void set_temp_table_id(uint64_t temp_table_id) { temp_table_id_ = temp_table_id; }
|
||||
uint64_t get_temp_table_id() const { return temp_table_id_; }
|
||||
inline common::ObString &get_table_name() { return temp_table_name_; }
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObLogTempTableInsert);
|
||||
uint64_t ref_table_id_;
|
||||
uint64_t temp_table_id_;
|
||||
common::ObString temp_table_name_;
|
||||
};
|
||||
} // namespace sql
|
||||
} // namespace oceanbase
|
||||
}
|
||||
}
|
||||
|
||||
#endif // OCEANBASE_SQL_OB_LOG_TEMP_TABLE_INSERT_H
|
||||
#endif // OCEANBASE_SQL_OB_LOG_TEMP_TABLE_INSERT_H
|
||||
|
||||
Reference in New Issue
Block a user