reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -30,7 +30,7 @@ class ObLogicalOperator;
|
||||
class ObRawExprUniqueSet;
|
||||
|
||||
class ObCodeGenerator {
|
||||
public:
|
||||
public:
|
||||
ObCodeGenerator(
|
||||
bool use_jit, bool use_static_typing_engine, uint64_t min_cluster_version, DatumParamStore* param_store)
|
||||
: use_jit_(use_jit),
|
||||
@ -43,7 +43,7 @@ class ObCodeGenerator {
|
||||
|
||||
int generate(const ObLogPlan& log_plan, ObPhysicalPlan& phy_plan);
|
||||
|
||||
private:
|
||||
private:
|
||||
int generate_old_plan(const ObLogPlan& log_plan, ObPhysicalPlan& phy_plan);
|
||||
int generate_exprs(const ObLogPlan& log_plan, ObPhysicalPlan& phy_plan);
|
||||
|
||||
@ -74,7 +74,7 @@ class ObCodeGenerator {
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObCodeGenerator);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool use_jit_;
|
||||
bool use_static_typing_engine_;
|
||||
uint64_t min_cluster_version_;
|
||||
|
||||
@ -120,7 +120,7 @@ using namespace oceanbase::share::schema;
|
||||
using namespace oceanbase::transaction;
|
||||
|
||||
class ObCodeGeneratorImpl::ColumnIndexProviderImpl : public jit::expr::ObColumnIndexProvider {
|
||||
public:
|
||||
public:
|
||||
ColumnIndexProviderImpl(const RowDesc& input_row_desc, const int32_t* projector = NULL, int64_t projector_size = 0)
|
||||
: left_row_desc_(&input_row_desc), right_row_desc_(NULL), projector_(projector), projector_size_(projector_size)
|
||||
{}
|
||||
@ -163,10 +163,10 @@ class ObCodeGeneratorImpl::ColumnIndexProviderImpl : public jit::expr::ObColumnI
|
||||
return ret;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ColumnIndexProviderImpl);
|
||||
|
||||
private:
|
||||
private:
|
||||
const RowDesc* left_row_desc_;
|
||||
const RowDesc* right_row_desc_;
|
||||
const int32_t* projector_;
|
||||
@ -3047,7 +3047,7 @@ int ObCodeGeneratorImpl::generate_root_row_desc(ObJoin* join, const std::pair<Ob
|
||||
}
|
||||
|
||||
class LGITargetOp {
|
||||
public:
|
||||
public:
|
||||
bool operator()(const ObPhyOperator& op) const
|
||||
{
|
||||
return PHY_LIGHT_GRANULE_ITERATOR == op.get_type();
|
||||
@ -8514,7 +8514,7 @@ int ObCodeGeneratorImpl::get_phy_op_type(ObLogicalOperator& log_op, ObPhyOperato
|
||||
}
|
||||
|
||||
class TSCTargetOp {
|
||||
public:
|
||||
public:
|
||||
bool operator()(const ObPhyOperator& op) const
|
||||
{
|
||||
return op.is_table_scan() && PHY_FAKE_TABLE != op.get_type();
|
||||
@ -8522,7 +8522,7 @@ class TSCTargetOp {
|
||||
};
|
||||
|
||||
class SingleDMLTargetOp {
|
||||
public:
|
||||
public:
|
||||
bool operator()(const ObPhyOperator& op) const
|
||||
{
|
||||
return op.is_dml_operator() && PHY_MULTI_PART_UPDATE != op.get_type() && PHY_MULTI_PART_INSERT != op.get_type() &&
|
||||
|
||||
@ -79,7 +79,7 @@ class ExprFunction;
|
||||
class ObSQLSessionInfo;
|
||||
class ObConnectBy;
|
||||
class ObCodeGeneratorImpl {
|
||||
public:
|
||||
public:
|
||||
explicit ObCodeGeneratorImpl(uint64_t min_cluster_version);
|
||||
virtual ~ObCodeGeneratorImpl()
|
||||
{}
|
||||
@ -89,12 +89,12 @@ class ObCodeGeneratorImpl {
|
||||
static int generate_calculable_exprs(const common::ObIArray<ObHiddenColumnItem>& calculable_exprs,
|
||||
const ObDMLStmt& stmt, ObPhysicalPlan& phy_plan, common::ObDList<ObSqlExpression>& pre_calc_exprs);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// types and constants
|
||||
class ColumnIndexProviderImpl;
|
||||
typedef common::ObSEArray<std::pair<ObPhyOperator*, RowDesc*>, 2> PhyOpsDesc;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObCodeGeneratorImpl);
|
||||
// function members
|
||||
@ -351,7 +351,7 @@ class ObCodeGeneratorImpl {
|
||||
int convert_multi_table_insert(ObLogInsertAll& op, const PhyOpsDesc& child_ops, PhyOpsDesc& out_ops);
|
||||
int convert_multi_insert_conditions(ObMultiTableInsert& phy_op, ObLogInsertAll& op, RowDesc* out_row_desc);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
ObPhysicalPlan* phy_plan_;
|
||||
common::ObSEArray<ObFakeCTETable*, 10> phy_cte_tables_;
|
||||
uint64_t cur_tbl_op_id_;
|
||||
|
||||
@ -23,7 +23,7 @@ namespace sql {
|
||||
|
||||
class ObRawExpr;
|
||||
class RowDesc : public jit::expr::ObColumnIndexProvider {
|
||||
public:
|
||||
public:
|
||||
RowDesc()
|
||||
{}
|
||||
virtual ~RowDesc()
|
||||
@ -45,7 +45,7 @@ class RowDesc : public jit::expr::ObColumnIndexProvider {
|
||||
int get_idx(const jit::expr::ObExpr* raw_expr, int64_t& idx) const override;
|
||||
TO_STRING_KV(N_EXPR, exprs_);
|
||||
|
||||
private:
|
||||
private:
|
||||
typedef common::hash::ObHashMap<int64_t, int64_t, common::hash::NoPthreadDefendMode> ExprIdxMap;
|
||||
ExprIdxMap expr_idx_map_;
|
||||
common::ObSEArray<ObRawExpr*, 256> exprs_;
|
||||
|
||||
@ -19,7 +19,7 @@ namespace oceanbase {
|
||||
namespace sql {
|
||||
|
||||
class ObExprGenerator {
|
||||
public:
|
||||
public:
|
||||
ObExprGenerator()
|
||||
{}
|
||||
virtual ~ObExprGenerator()
|
||||
@ -28,7 +28,7 @@ class ObExprGenerator {
|
||||
virtual int generate(ObRawExpr& raw_expr, ObSqlExpression& out_expr) = 0;
|
||||
virtual int generate(ObRawExpr& raw_expr, ObIterExprOperator*& out_expr) = 0;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprGenerator);
|
||||
};
|
||||
|
||||
@ -39,7 +39,7 @@ class ObExprDllUdf;
|
||||
typedef common::ObSEArray<ObIterExprOperator*, 2> PhyIterExprDesc;
|
||||
|
||||
class ObExprGeneratorImpl : public ObExprGenerator, public ObRawExprVisitor {
|
||||
public:
|
||||
public:
|
||||
ObExprGeneratorImpl(int16_t cur_regexp_op_count, int16_t cur_like_op_count, uint32_t* next_expr_id,
|
||||
ObColumnIndexProvider& column_idx_provider);
|
||||
|
||||
@ -66,7 +66,7 @@ class ObExprGeneratorImpl : public ObExprGenerator, public ObRawExprVisitor {
|
||||
int gen_fast_column_conv_expr(ObRawExpr& raw_expr);
|
||||
int gen_fast_expr(ObRawExpr& raw_expr);
|
||||
|
||||
private:
|
||||
private:
|
||||
/// interface of ObRawExprVisitor
|
||||
virtual int visit(ObConstRawExpr& expr);
|
||||
virtual int visit(ObVarRawExpr& expr);
|
||||
@ -83,9 +83,9 @@ class ObExprGeneratorImpl : public ObExprGenerator, public ObRawExprVisitor {
|
||||
virtual int visit(ObPseudoColumnRawExpr& expr);
|
||||
virtual bool skip_child(ObRawExpr& expr);
|
||||
|
||||
private:
|
||||
private:
|
||||
// types and constants
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprGeneratorImpl);
|
||||
int visit_simple_op(ObNonTerminalRawExpr& expr);
|
||||
@ -113,10 +113,10 @@ class ObExprGeneratorImpl : public ObExprGenerator, public ObRawExprVisitor {
|
||||
// visit child of %raw_expr and add visited child to %visited_exprs
|
||||
int infix_visit_child(ObRawExpr& raw_expr, common::ObIArray<ObRawExpr*>& visited_exprs);
|
||||
|
||||
private:
|
||||
private:
|
||||
int set_need_cast(ObNonTerminalRawExpr& expr, bool& need_cast);
|
||||
|
||||
private:
|
||||
private:
|
||||
// data members
|
||||
ObSqlExpression* sql_expr_; // generated postfix expression
|
||||
int16_t cur_regexp_op_count_;
|
||||
|
||||
@ -116,7 +116,7 @@ class ObTempTableTransformationOpSpec;
|
||||
// code generator for static typing engine.
|
||||
//
|
||||
class ObStaticEngineCG : public ObCodeGeneratorImpl {
|
||||
public:
|
||||
public:
|
||||
using ObCodeGeneratorImpl::ObCodeGeneratorImpl;
|
||||
template <int TYPE>
|
||||
friend class GenSpecHelper;
|
||||
@ -130,7 +130,7 @@ class ObStaticEngineCG : public ObCodeGeneratorImpl {
|
||||
int generate_rt_expr(const ObRawExpr& raw_expr, ObExpr*& rt_expr);
|
||||
int generate_rt_exprs(const common::ObIArray<ObRawExpr*>& src, common::ObIArray<ObExpr*>& dst);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool enable_pushdown_filter_to_storage(const ObLogTableScan& op);
|
||||
// Post order visit logic plan and generate operator specification.
|
||||
// %in_root_job indicate that the operator is executed in main execution thread,
|
||||
@ -313,7 +313,7 @@ class ObStaticEngineCG : public ObCodeGeneratorImpl {
|
||||
int generate_spec(ObLogInsert& op, ObPxMultiPartInsertSpec& spec, const bool in_root_job);
|
||||
int generate_spec(ObLogUpdate& op, ObPxMultiPartUpdateSpec& spec, const bool in_root_job);
|
||||
|
||||
private:
|
||||
private:
|
||||
int convert_global_index_merge_info(ObLogMerge& op, const TableColumns& table_columns,
|
||||
common::ObIArray<ObOpSpec*>& subplan_roots, ObTableDMLInfo& table_dml_info);
|
||||
int generate_merge_subplan_access_exprs(const bool has_update_clause, const ObAssignments& assigns,
|
||||
@ -403,7 +403,7 @@ class ObStaticEngineCG : public ObCodeGeneratorImpl {
|
||||
int generate_hash_func_exprs(const common::ObIArray<ObExchangeInfo::HashExpr>& hash_dist_exprs,
|
||||
ExprFixedArray& dist_exprs, common::ObHashFuncs& dist_hash_funcs);
|
||||
|
||||
private:
|
||||
private:
|
||||
// all exprs of current operator
|
||||
ObSEArray<ObRawExpr*, 8> cur_op_exprs_;
|
||||
// all self_produced exprs of current operator
|
||||
|
||||
@ -400,7 +400,7 @@ struct TmpFrameInfo {
|
||||
{}
|
||||
TO_STRING_KV(K_(expr_start_pos), K_(frame_info));
|
||||
|
||||
public:
|
||||
public:
|
||||
uint64_t expr_start_pos_;
|
||||
ObFrameInfo frame_info_;
|
||||
};
|
||||
|
||||
@ -28,23 +28,23 @@ class ObDMLStmt;
|
||||
class ObRawExprUniqueSet;
|
||||
|
||||
class ObExprCGCtx {
|
||||
public:
|
||||
public:
|
||||
ObExprCGCtx() : allocator_(NULL), exec_ctx_(NULL)
|
||||
{}
|
||||
ObExprCGCtx(common::ObIAllocator* allocator, ObExecContext* exec_ctx) : allocator_(allocator), exec_ctx_(exec_ctx)
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprCGCtx);
|
||||
|
||||
public:
|
||||
public:
|
||||
common::ObIAllocator* allocator_;
|
||||
ObExecContext* exec_ctx_;
|
||||
};
|
||||
class ObRawExpr;
|
||||
class ObHiddenColumnItem;
|
||||
class ObStaticEngineExprCG {
|
||||
public:
|
||||
public:
|
||||
static const int64_t STACK_OVERFLOW_CHECK_DEPTH = 16;
|
||||
static const int64_t DATUM_EVAL_INFO_SIZE = sizeof(ObDatum) + sizeof(ObEvalInfo);
|
||||
friend class ObRawExpr;
|
||||
@ -81,7 +81,7 @@ class ObStaticEngineExprCG {
|
||||
return op_cg_ctx_;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
static ObExpr* get_rt_expr(const ObRawExpr& raw_expr);
|
||||
int construct_exprs(const common::ObIArray<ObRawExpr*>& raw_exprs, common::ObIArray<ObExpr>& rt_exprs);
|
||||
|
||||
@ -146,11 +146,11 @@ class ObStaticEngineExprCG {
|
||||
int inner_generate_calculable_exprs(
|
||||
const common::ObIArray<ObHiddenColumnItem>& calculable_exprs, ObPreCalcExprFrameInfo& expr_info);
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObStaticEngineExprCG);
|
||||
|
||||
private:
|
||||
private:
|
||||
common::ObIAllocator& allocator_;
|
||||
DatumParamStore* param_store_;
|
||||
ObExprCGCtx op_cg_ctx_;
|
||||
|
||||
Reference in New Issue
Block a user