0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::SerializedCellsWriter Class Reference

#include <SerializedCellsWriter.h>

Collaboration diagram for Hypertable::SerializedCellsWriter:
Collaboration graph
[legend]

Public Member Functions

 SerializedCellsWriter (int32_t size, bool grow=false)
 
bool add (Cell &cell)
 
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)
 
bool add (const char *row, const char *column_family, const char *column_qualifier, int64_t timestamp, const void *value, int32_t value_length, uint8_t cell_flag=FLAG_INSERT)
 
void finalize (uint8_t flag)
 
uint8_t * get_buffer ()
 
uint8_t * get_buffer () const
 
int32_t get_buffer_length ()
 
int32_t get_buffer_length () const
 
void get_buffer (const uint8_t **bufp, int32_t *lenp)
 
bool empty ()
 
void clear ()
 

Private Attributes

DynamicBuffer m_buf
 
bool m_finalized
 
bool m_grow
 
int m_previous_row_offset
 
int32_t m_previous_row_length
 

Detailed Description

Definition at line 32 of file SerializedCellsWriter.h.

Constructor & Destructor Documentation

Hypertable::SerializedCellsWriter::SerializedCellsWriter ( int32_t  size,
bool  grow = false 
)
inline

Definition at line 35 of file SerializedCellsWriter.h.

Member Function Documentation

bool Hypertable::SerializedCellsWriter::add ( Cell cell)
inline

Definition at line 39 of file SerializedCellsWriter.h.

bool Hypertable::SerializedCellsWriter::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 
)
inline

Definition at line 44 of file SerializedCellsWriter.h.

bool SerializedCellsWriter::add ( const char *  row,
const char *  column_family,
const char *  column_qualifier,
int64_t  timestamp,
const void *  value,
int32_t  value_length,
uint8_t  cell_flag = FLAG_INSERT 
)

Definition at line 32 of file SerializedCellsWriter.cc.

void SerializedCellsWriter::clear ( )

Definition at line 125 of file SerializedCellsWriter.cc.

bool Hypertable::SerializedCellsWriter::empty ( )
inline

Definition at line 78 of file SerializedCellsWriter.h.

void Hypertable::SerializedCellsWriter::finalize ( uint8_t  flag)
inline

Definition at line 57 of file SerializedCellsWriter.h.

uint8_t* Hypertable::SerializedCellsWriter::get_buffer ( )
inline

Definition at line 66 of file SerializedCellsWriter.h.

uint8_t* Hypertable::SerializedCellsWriter::get_buffer ( ) const
inline

Definition at line 67 of file SerializedCellsWriter.h.

void Hypertable::SerializedCellsWriter::get_buffer ( const uint8_t **  bufp,
int32_t *  lenp 
)
inline

Definition at line 71 of file SerializedCellsWriter.h.

int32_t Hypertable::SerializedCellsWriter::get_buffer_length ( )
inline

Definition at line 68 of file SerializedCellsWriter.h.

int32_t Hypertable::SerializedCellsWriter::get_buffer_length ( ) const
inline

Definition at line 69 of file SerializedCellsWriter.h.

Member Data Documentation

DynamicBuffer Hypertable::SerializedCellsWriter::m_buf
private

Definition at line 83 of file SerializedCellsWriter.h.

bool Hypertable::SerializedCellsWriter::m_finalized
private

Definition at line 84 of file SerializedCellsWriter.h.

bool Hypertable::SerializedCellsWriter::m_grow
private

Definition at line 85 of file SerializedCellsWriter.h.

int32_t Hypertable::SerializedCellsWriter::m_previous_row_length
private

Definition at line 87 of file SerializedCellsWriter.h.

int Hypertable::SerializedCellsWriter::m_previous_row_offset
private

Definition at line 86 of file SerializedCellsWriter.h.


The documentation for this class was generated from the following files: