28 #ifndef Hypertable_Lib_RangeState_h
29 #define Hypertable_Lib_RangeState_h
145 size_t *remainp)
override;
191 void clear()
override;
337 size_t *remainp)
override;
356 #endif // Hypertable_Lib_RangeState_h
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
void set_source(const std::string &src)
Sets source server name.
StateType
Mixed enumeration for range state values and PHANTOM bit mask.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
virtual void clear()
Clears state.
void set_old_boundary_row(const std::string &obr)
Sets old boundary row.
void clear_source()
Clears source member.
uint64_t soft_limit
Soft split size limit.
PageArena memory allocator for STL classes.
virtual ~RangeStateManaged()
Destructor.
const char * old_boundary_row
Original range boundary row.
const char * source
Source server where this range previously lived.
Relinquish - log installed.
CharT * dup(const CharT *s)
Duplicate a null terminated string; memory is allocated from the pool.
uint8_t encoding_version() const override
Returns encoding version.
void clear_transfer_log()
Clears transfer log.
RangeStateManaged(const RangeStateManaged &rs)
Copy constructor.
const char * transfer_log
Full pathname of transfer log.
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
The PageArena allocator is simple and fast, avoiding individual mallocs/frees.
RangeState(CharArena &arena, const RangeState &other)
Copy constructor.
uint8_t state
Range state value (see StateType)
RangeState()
Default constructor.
size_t encoded_length_internal() const override
Returns internal serialized length.
int64_t timestamp
Timestamp
static std::string get_text(uint8_t state)
Returns string representation of range state value.
std::string m_old_boundary_row
Old boundary row string container.
Declarations for Serializable.
RangeStateManaged(const RangeState &rs)
Constructor initialized with RangeState object.
RangeStateManaged()
Default constructor.
Relinquish - range compacted.
void set_transfer_log(const std::string &tl)
Sets transfer log.
std::string m_split_point
Split point string container.
Mixin class that provides a standard serialization interface.
std::string m_transfer_log
Transfer log string container.
void clear() override
Clears state.
const char * split_point
Split point (row key)
A String class based on std::string.
std::string m_source
Source server string container.
void set_split_point(const std::string &sp)
Sets split point.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
void clear_old_boundary_row()
Clears old_boundary_row.
void clear_split_point()
Clears split point.
Range state with memory management.
RangeStateManaged & operator=(const RangeState &rs)
Assignment operator with RangeState object.
RangeStateManaged & operator=(const RangeStateManaged &other)
Assignment operator.
virtual ~RangeState()
Destructor.