20 #ifndef HYPERTABLE_SERIALIZEDCELLSWRITER_H
21 #define HYPERTABLE_SERIALIZEDCELLSWRITER_H
44 bool add(
const char *row,
const char *column_family,
45 const char *column_qualifier, int64_t timestamp,
46 const char *value, int32_t value_length,
48 return add(row, column_family, column_qualifier, timestamp,
49 (
const void *)value, value_length, (uint8_t)cell_flag);
52 bool add(
const char *row,
const char *column_family,
53 const char *column_qualifier, int64_t timestamp,
54 const void *value, int32_t value_length,
92 #endif // HYPERTABLE_SERIALIZEDCELLSWRITER_H
bool empty() const
Returns true if the buffer is empty.
static const uint32_t FLAG_INSERT
const char * column_qualifier
uint8_t * ptr
Pointer to the end of the used part of the buffer.
A dynamic, resizable and reference counted memory buffer.
int32_t get_buffer_length() const
uint8_t * get_buffer() const
SerializedCellsWriter(int32_t size, bool grow=false)
A dynamic, resizable memory buffer.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
int m_previous_row_offset
void get_buffer(const uint8_t **bufp, int32_t *lenp)
int32_t get_buffer_length()
bool add(const char *row, const char *column_family, const char *column_qualifier, int64_t timestamp, const char *value, int32_t value_length, int cell_flag)
int32_t m_previous_row_length
const char * column_family
uint8_t * base
Pointer to the allocated memory buffer.
size_t fill() const
Returns the size of the used portion.
Encapsulates decomposed key and value.
void finalize(uint8_t flag)
void ensure(size_t len)
Ensure space for additional data Will grow the space to 1.5 of the needed space with existing data un...