22 #ifndef Hypertable_Master_OperationRenameTable_h
23 #define Hypertable_Master_OperationRenameTable_h
46 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
47 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
63 #endif // Hypertable_Master_OperationRenameTable_h
std::string String
A String is simply a typedef to std::string.
void execute() override
Executes (carries out) the operation.
Declarations for Operation.
const String name() override
Name of operation used for exclusivity.
Lib::Master::Request::Parameters::RenameTable m_params
Request parmaeters.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
virtual ~OperationRenameTable()
Represents a set of table parts (sub-tables).
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
const String label() override
Human readable label for operation.
TableParts m_parts
Index tables requiring renaming.
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
void display_state(std::ostream &os) override
Write human readable operation state to output stream.
Request parameters for rename table operation.
OperationRenameTable(ContextPtr &context, const String &from, const String &to)
String m_id
Table ID path for new name.
Declarations for RenameTable request parameters.
Abstract base class for master operations.
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Decode operation state.
void encode_state(uint8_t **bufp) const override
Encode operation state.
uint8_t encoding_version_state() const override
Returns version of encoding format of state.
Declarations for TableParts.
size_t encoded_length_state() const override
Encoded length of operation state.