reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -25,7 +25,7 @@ using namespace share;
using namespace share::schema;
namespace sql {
class ObSequence::ObSequenceCtx : public ObPhyOperatorCtx {
public:
public:
explicit ObSequenceCtx(ObExecContext& ctx) : ObPhyOperatorCtx(ctx), sequence_cache_(nullptr)
{
sequence_cache_ = &share::ObSequenceCache::get_instance();
@ -47,7 +47,7 @@ class ObSequence::ObSequenceCtx : public ObPhyOperatorCtx {
ObPhyOperatorCtx::destroy_base();
}
private:
private:
share::ObSequenceCache* sequence_cache_;
common::ObSEArray<ObSequenceSchema, 1> seq_schemas_;
friend class ObSequence;

View File

@ -20,10 +20,10 @@ class ObSqlExpression;
class ObSequence : public ObMultiChildrenPhyOperator {
OB_UNIS_VERSION_V(1);
private:
private:
class ObSequenceCtx;
public:
public:
explicit ObSequence(common::ObIAllocator& alloc);
virtual ~ObSequence();
@ -31,7 +31,7 @@ class ObSequence : public ObMultiChildrenPhyOperator {
virtual void reuse();
int add_uniq_nextval_sequence_id(uint64_t seq_id);
private:
private:
bool is_valid() const;
/**
* @brief init operator context, will create a physical operator context (and a current row space)
@ -68,7 +68,7 @@ class ObSequence : public ObMultiChildrenPhyOperator {
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObSequence);
private:
private:
common::ObSEArray<uint64_t, 4> nextval_seq_ids_;
};
} // end namespace sql

View File

@ -22,7 +22,7 @@ namespace sql {
class ObSequenceSpec : public ObOpSpec {
OB_UNIS_VERSION_V(1);
public:
public:
ObSequenceSpec(common::ObIAllocator& alloc, const ObPhyOperatorType type);
INHERIT_TO_STRING_KV("op_spec", ObOpSpec, K_(nextval_seq_ids));
@ -32,7 +32,7 @@ class ObSequenceSpec : public ObOpSpec {
};
class ObSequenceOp : public ObOperator {
public:
public:
ObSequenceOp(ObExecContext& exec_ctx, const ObOpSpec& spec, ObOpInput* input);
~ObSequenceOp();
@ -53,7 +53,7 @@ class ObSequenceOp : public ObOperator {
ObOperator::destroy();
}
private:
private:
bool is_valid();
int init_op();
/**
@ -65,7 +65,7 @@ class ObSequenceOp : public ObOperator {
int try_get_next_row();
private:
private:
share::ObSequenceCache* sequence_cache_;
common::ObSEArray<share::schema::ObSequenceSchema, 1> seq_schemas_;
};