27 #ifndef Hypertable_Master_OperationAlterTable_h
28 #define Hypertable_Master_OperationAlterTable_h
125 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
127 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
191 #endif // Hypertable_Master_OperationAlterTable_h
std::set< String > StringSet
STL Set managing Strings.
TableParts get_create_index_parts(SchemaPtr &original_schema, SchemaPtr &alter_schema)
Determines which index tables to create.
String m_id
Table identifier
Request parameters for alter table operation.
std::string String
A String is simply a typedef to std::string.
Declarations for Operation.
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Declarations for AlterTable request parameters.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
OperationAlterTable(ContextPtr &context, const MetaLog::EntityHeader &header_)
Constructor for constructing object from MetaLog entry.
Represents a set of table parts (sub-tables).
bool get_schemas(SchemaPtr &original_schema, SchemaPtr &alter_schema)
Gets schema objects.
Carries out an alter table operation.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
TableParts m_parts
Index tables to be created or dropped.
void encode_state(uint8_t **bufp) const override
Writes serialized encoding of object state.
void execute() override
Carries out the alter table operation.
TableParts get_drop_index_parts(SchemaPtr &original_schema, SchemaPtr &alter_schema)
Determines which index tables to drop.
String m_schema
Schema for the table
size_t encoded_length_state() const override
Returns serialized state length.
Abstract base class for master operations.
void display_state(std::ostream &os) override
Writes human readable representation of object to output stream.
uint8_t encoding_version_state() const override
Returns encoding version.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
const String name() override
Returns name of operation ("OperationAlterTable")
virtual ~OperationAlterTable()
Destructor.
StringSet m_completed
Set of range servers that have completed operation.
String extensions and helpers: sets, maps, append operators etc.
Lib::Master::Request::Parameters::AlterTable m_params
Request parmaeters.
const String label() override
Returns descriptive label for operation.
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized encoding of object state.
StringSet m_servers
Set of participating range servers.