reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -21,7 +21,7 @@ namespace oceanbase {
|
||||
using namespace common;
|
||||
namespace sql {
|
||||
class ObSubPlanFilter::ObSubPlanIterator : public ObNewRowIterator {
|
||||
public:
|
||||
public:
|
||||
ObSubPlanIterator(ObExecContext& ctx, const ObPhyOperator& op)
|
||||
: ObNewRowIterator(),
|
||||
ctx_(ctx),
|
||||
@ -139,7 +139,7 @@ class ObSubPlanFilter::ObSubPlanIterator : public ObNewRowIterator {
|
||||
return ret;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
ObExecContext& ctx_;
|
||||
const ObPhyOperator& op_;
|
||||
bool onetime_plan_;
|
||||
@ -169,7 +169,7 @@ class ObSubPlanFilter::ObSubPlanFilterCtx : public ObPhyOperatorCtx {
|
||||
ObPhyOperatorCtx::destroy_base();
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
ObSEArray<ObNewRowIterator*, 16> subplan_iters_;
|
||||
friend class ObSubPlanFilter;
|
||||
};
|
||||
|
||||
@ -22,7 +22,7 @@ class ObSubPlanFilter : public ObMultiChildrenPhyOperator {
|
||||
class ObSubPlanFilterCtx;
|
||||
class ObSubPlanIterator;
|
||||
|
||||
public:
|
||||
public:
|
||||
explicit ObSubPlanFilter(common::ObIAllocator& alloc);
|
||||
virtual ~ObSubPlanFilter();
|
||||
|
||||
@ -68,7 +68,7 @@ class ObSubPlanFilter : public ObMultiChildrenPhyOperator {
|
||||
virtual int open(ObExecContext& ctx) const;
|
||||
virtual int switch_iterator(ObExecContext& ctx) const override;
|
||||
|
||||
private:
|
||||
private:
|
||||
/**
|
||||
* @brief init operator context, will create a physical operator context (and a current row space)
|
||||
* @param ctx[in], execute context
|
||||
@ -105,10 +105,10 @@ class ObSubPlanFilter : public ObMultiChildrenPhyOperator {
|
||||
int handle_update_set(ObSubPlanFilterCtx* subplan_ctx, const common::ObNewRow*& row) const;
|
||||
int construct_array_params(ObExecContext& ctx) const;
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObSubPlanFilter);
|
||||
|
||||
private:
|
||||
private:
|
||||
common::ObFixedArray<std::pair<ObSqlExpression*, int64_t>, common::ObIAllocator> rescan_params_;
|
||||
common::ObFixedArray<std::pair<ObSqlExpression*, int64_t>, common::ObIAllocator> onetime_exprs_;
|
||||
common::ObBitSet<common::OB_DEFAULT_BITSET_SIZE, common::ModulePageAllocator> init_plan_idxs_;
|
||||
|
||||
@ -21,7 +21,7 @@ namespace sql {
|
||||
|
||||
// iterator subquery rows
|
||||
class ObSubQueryIterator {
|
||||
public:
|
||||
public:
|
||||
explicit ObSubQueryIterator(ObOperator& op);
|
||||
~ObSubQueryIterator()
|
||||
{}
|
||||
@ -55,7 +55,7 @@ class ObSubQueryIterator {
|
||||
|
||||
TO_STRING_KV(K(onetime_plan_), K(init_plan_), K(inited_));
|
||||
|
||||
private:
|
||||
private:
|
||||
ObOperator& op_;
|
||||
bool onetime_plan_;
|
||||
bool init_plan_;
|
||||
@ -69,7 +69,7 @@ class ObSubQueryIterator {
|
||||
class ObSubPlanFilterSpec : public ObOpSpec {
|
||||
OB_UNIS_VERSION_V(1);
|
||||
|
||||
public:
|
||||
public:
|
||||
ObSubPlanFilterSpec(common::ObIAllocator& alloc, const ObPhyOperatorType type);
|
||||
|
||||
DECLARE_VIRTUAL_TO_STRING;
|
||||
@ -88,7 +88,7 @@ class ObSubPlanFilterSpec : public ObOpSpec {
|
||||
};
|
||||
|
||||
class ObSubPlanFilterOp : public ObOperator {
|
||||
public:
|
||||
public:
|
||||
typedef ObSubQueryIterator Iterator;
|
||||
|
||||
ObSubPlanFilterOp(ObExecContext& exec_ctx, const ObOpSpec& spec, ObOpInput* input);
|
||||
@ -109,7 +109,7 @@ class ObSubPlanFilterOp : public ObOperator {
|
||||
return subplan_iters_;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
int set_param_null();
|
||||
void destroy_subplan_iters();
|
||||
void destroy_update_set_mem()
|
||||
@ -124,7 +124,7 @@ class ObSubPlanFilterOp : public ObOperator {
|
||||
int prepare_onetime_exprs();
|
||||
int handle_update_set();
|
||||
|
||||
private:
|
||||
private:
|
||||
common::ObSEArray<Iterator*, 16> subplan_iters_;
|
||||
lib::MemoryContext* update_set_mem_;
|
||||
};
|
||||
|
||||
@ -18,7 +18,7 @@ namespace oceanbase {
|
||||
using namespace common;
|
||||
namespace sql {
|
||||
class ObSubPlanScan::ObSubPlanScanCtx : public ObPhyOperatorCtx {
|
||||
public:
|
||||
public:
|
||||
explicit ObSubPlanScanCtx(ObExecContext& ctx) : ObPhyOperatorCtx(ctx)
|
||||
{}
|
||||
virtual void destroy()
|
||||
|
||||
@ -19,10 +19,10 @@ namespace sql {
|
||||
class ObSubPlanScan : public ObSingleChildPhyOperator {
|
||||
OB_UNIS_VERSION(1);
|
||||
|
||||
private:
|
||||
private:
|
||||
class ObSubPlanScanCtx;
|
||||
|
||||
public:
|
||||
public:
|
||||
explicit ObSubPlanScan(common::ObIAllocator& alloc);
|
||||
virtual ~ObSubPlanScan();
|
||||
virtual void reset();
|
||||
@ -34,7 +34,7 @@ class ObSubPlanScan : public ObSingleChildPhyOperator {
|
||||
return init_array_size<>(output_indexs_, count);
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
/**
|
||||
* @brief init operator context, will create a physical operator context (and a current row space)
|
||||
* @param ctx[in], execute context
|
||||
@ -66,11 +66,11 @@ class ObSubPlanScan : public ObSingleChildPhyOperator {
|
||||
*/
|
||||
virtual int64_t to_string_kv(char* buf, const int64_t buf_len) const;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObSubPlanScan);
|
||||
|
||||
private:
|
||||
private:
|
||||
// The information saved by output_indexs_ is the index of the column iterated by the lower operator that needs to be
|
||||
// output
|
||||
common::ObFixedArray<int64_t, common::ObIAllocator> output_indexs_;
|
||||
|
||||
@ -21,7 +21,7 @@ namespace sql {
|
||||
class ObSubPlanScanSpec : public ObOpSpec {
|
||||
OB_UNIS_VERSION_V(1);
|
||||
|
||||
public:
|
||||
public:
|
||||
ObSubPlanScanSpec(common::ObIAllocator& alloc, const ObPhyOperatorType type);
|
||||
// project child output to subplan scan column.
|
||||
// projector_is filled with [child output, scan column] paires, even index is child output,
|
||||
@ -31,7 +31,7 @@ class ObSubPlanScanSpec : public ObOpSpec {
|
||||
};
|
||||
|
||||
class ObSubPlanScanOp : public ObOperator {
|
||||
public:
|
||||
public:
|
||||
ObSubPlanScanOp(ObExecContext& exec_ctx, const ObOpSpec& spec, ObOpInput* input);
|
||||
|
||||
virtual int inner_open() override;
|
||||
|
||||
@ -18,7 +18,7 @@ namespace oceanbase {
|
||||
using namespace common;
|
||||
namespace sql {
|
||||
class ObUnpivot::ObUnpivotCtx : public ObPhyOperatorCtx {
|
||||
public:
|
||||
public:
|
||||
explicit ObUnpivotCtx(ObExecContext& ctx)
|
||||
: ObPhyOperatorCtx(ctx), last_input_row_(NULL), is_end_(false), curr_part_idx_(common::OB_INVALID_INDEX)
|
||||
{}
|
||||
@ -34,7 +34,7 @@ class ObUnpivot::ObUnpivotCtx : public ObPhyOperatorCtx {
|
||||
}
|
||||
friend class ObUnpivot;
|
||||
|
||||
public:
|
||||
public:
|
||||
const ObNewRow* last_input_row_;
|
||||
bool is_end_;
|
||||
int64_t curr_part_idx_;
|
||||
|
||||
@ -20,10 +20,10 @@ namespace sql {
|
||||
class ObUnpivot : public ObSingleChildPhyOperator {
|
||||
OB_UNIS_VERSION(1);
|
||||
|
||||
private:
|
||||
private:
|
||||
class ObUnpivotCtx;
|
||||
|
||||
public:
|
||||
public:
|
||||
explicit ObUnpivot(common::ObIAllocator& alloc);
|
||||
virtual ~ObUnpivot();
|
||||
virtual void reset();
|
||||
@ -35,7 +35,7 @@ class ObUnpivot : public ObSingleChildPhyOperator {
|
||||
return init_array_size<>(output_indexs_, count);
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
/**
|
||||
* @brief init operator context, will create a physical operator context (and a current row space)
|
||||
* @param ctx[in], execute context
|
||||
@ -67,11 +67,11 @@ class ObUnpivot : public ObSingleChildPhyOperator {
|
||||
*/
|
||||
virtual int64_t to_string_kv(char* buf, const int64_t buf_len) const;
|
||||
|
||||
public:
|
||||
public:
|
||||
common::ObFixedArray<int64_t, common::ObIAllocator> output_indexs_;
|
||||
ObUnpivotInfo unpivot_info_;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(ObUnpivot);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user