49 bool needs_compaction)
50 :
Entity(EntityType::
RANGE2), m_table(table), m_spec(spec), m_state(state),
51 m_needs_compaction(needs_compaction), m_load_acknowledged(false) {
196 uint16_t definition_version) {
197 if (definition_version < 3)
200 Entity::decode(bufp, remainp);
void set_source(const std::string &src)
Sets source server name.
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
void set_old_boundary_row(const std::string &obr)
Sets old boundary row.
std::string String
A String is simply a typedef to std::string.
virtual size_t encoded_length() const
Returns serialized object length.
uint64_t soft_limit
Soft split size limit.
const char * old_boundary_row
Original range boundary row.
const char * source
Source server where this range previously lived.
void set_start_row(const std::string &s)
virtual void encode(uint8_t **bufp) const
Writes serialized representation of object to a buffer.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
Compatibility Macros for C/C++.
const char * transfer_log
Full pathname of transfer log.
uint8_t state
Range state value (see StateType)
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
void legacy_decode(const uint8_t **bufp, size_t *remainp, BalancePlan *plan)
void encode_bool(uint8_t **bufp, bool bval)
Encodes a boolean into the given buffer.
void set_transfer_log(const std::string &tl)
Sets transfer log.
void clear() override
Clears state.
const char * split_point
Split point (row key)
void set_end_row(const std::string &e)
void set_split_point(const std::string &sp)
Sets split point.
Wrapper for RangeSpec providing member storage.
Range state with memory management.