27 #ifndef Hypertable_Master_OperationDropTable_h
28 #define Hypertable_Master_OperationDropTable_h
154 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
156 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
180 #endif // Hypertable_Master_OperationDropTable_h
std::set< String > StringSet
STL Set managing Strings.
Carries out a drop table operation.
TableParts m_parts
Specification for which parts of table to drop.
std::string String
A String is simply a typedef to std::string.
Declarations for Operation.
OperationDropTable(ContextPtr &context, const String &name, bool if_exists, TableParts parts)
Constructor.
const String label() override
Returns descriptive label for operation.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
StringSet m_servers
Set of participating range servers.
Declarations for DropTable request parameters.
StringSet m_completed
Range servers for which drop table operation has completed successfuly
Represents a set of table parts (sub-tables).
void encode_state(uint8_t **bufp) const override
Writes serialized encoding of object state.
void display_state(std::ostream &os) override
Writes human readable representation of object to output stream.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
Request parameters for drop table operation.
Lib::Master::Request::Parameters::DropTable m_params
Request parmaeters.
void execute() override
Carries out the drop table operation.
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Decodes state from serialized object.
Abstract base class for master operations.
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
size_t encoded_length_state() const override
Returns serialized state length.
const String name() override
Returns name of operation ("OperationDropTable")
uint8_t encoding_version_state() const override
Returns version of encoding format of state.
virtual ~OperationDropTable()
Destructor.
String extensions and helpers: sets, maps, append operators etc.
String m_id
Table ID string
Declarations for TableParts.