patch 4.0
This commit is contained in:
@ -15,26 +15,34 @@
|
||||
|
||||
#include "lib/container/ob_bit_set.h"
|
||||
|
||||
namespace oceanbase {
|
||||
namespace oceanbase
|
||||
{
|
||||
|
||||
namespace share {
|
||||
namespace share
|
||||
{
|
||||
class ObSequenceOption;
|
||||
class ObSequenceOptionBuilder {
|
||||
class ObSequenceOptionBuilder
|
||||
{
|
||||
public:
|
||||
ObSequenceOptionBuilder() = default;
|
||||
~ObSequenceOptionBuilder() = default;
|
||||
static int build_create_sequence_option(const common::ObBitSet<>& opt_bitset, share::ObSequenceOption& opt_new);
|
||||
static int build_alter_sequence_option(
|
||||
const common::ObBitSet<>& opt_bitset, const share::ObSequenceOption& opt_old, share::ObSequenceOption& opt_new);
|
||||
|
||||
static int build_create_sequence_option(const common::ObBitSet<> &opt_bitset,
|
||||
share::ObSequenceOption &opt_new);
|
||||
static int build_alter_sequence_option(const common::ObBitSet<> &opt_bitset,
|
||||
const share::ObSequenceOption &opt_old,
|
||||
share::ObSequenceOption &opt_new,
|
||||
bool can_alter_start_with);
|
||||
private:
|
||||
static int pre_check_sequence_option(const share::ObSequenceOption& opt);
|
||||
static int check_sequence_option(const common::ObBitSet<>& opt_bitset, const share::ObSequenceOption& opt);
|
||||
static int check_sequence_option_integer(const common::ObBitSet<>& opt_bitset, const share::ObSequenceOption& option);
|
||||
static int pre_check_sequence_option(const share::ObSequenceOption &opt);
|
||||
static int check_sequence_option(const common::ObBitSet<> &opt_bitset,
|
||||
const share::ObSequenceOption &opt);
|
||||
static int check_sequence_option_integer(const common::ObBitSet<> &opt_bitset,
|
||||
const share::ObSequenceOption &option);
|
||||
DISALLOW_COPY_AND_ASSIGN(ObSequenceOptionBuilder);
|
||||
};
|
||||
|
||||
} // namespace share
|
||||
} // namespace oceanbase
|
||||
}
|
||||
}
|
||||
#endif /* __OB_SHARE_SEQUENCE_SEQUENCE_OPTION_CHECKER_H__ */
|
||||
//// end of header file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user