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

#include <TestSource.h>

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

Public Member Functions

 TestSource (const std::string &fname, Schema *schema)
 
bool next (ByteString &key, ByteString &value)
 
void clear_min_timestamp ()
 
int64_t get_min_timestamp ()
 

Private Member Functions

bool create_row_delete (const char *row, int64_t timestamp, ByteString &key, ByteString &value)
 
bool create_column_delete (const char *row, const char *column, int64_t timestamp, ByteString &key, ByteString &value)
 
bool create_insert (const char *row, const char *column, int64_t timestamp, const char *value_str, ByteString &key, ByteString &value)
 

Private Attributes

Schemam_schema
 
std::ifstream m_fin
 
long m_cur_line
 
DynamicBuffer m_key_buffer
 
DynamicBuffer m_value_buffer
 
int64_t m_min_timestamp
 

Detailed Description

Definition at line 36 of file TestSource.h.

Constructor & Destructor Documentation

Hypertable::TestSource::TestSource ( const std::string &  fname,
Schema schema 
)
inline

Definition at line 39 of file TestSource.h.

Member Function Documentation

void Hypertable::TestSource::clear_min_timestamp ( )
inline

Definition at line 44 of file TestSource.h.

bool TestSource::create_column_delete ( const char *  row,
const char *  column,
int64_t  timestamp,
ByteString key,
ByteString value 
)
private

Definition at line 170 of file TestSource.cc.

bool TestSource::create_insert ( const char *  row,
const char *  column,
int64_t  timestamp,
const char *  value_str,
ByteString key,
ByteString value 
)
private

Definition at line 243 of file TestSource.cc.

bool TestSource::create_row_delete ( const char *  row,
int64_t  timestamp,
ByteString key,
ByteString value 
)
private

Definition at line 139 of file TestSource.cc.

int64_t Hypertable::TestSource::get_min_timestamp ( )
inline

Definition at line 45 of file TestSource.h.

bool TestSource::next ( ByteString key,
ByteString value 
)

If the row key ends in "??", replace the "??" with 0xff 0xff

Definition at line 39 of file TestSource.cc.

Member Data Documentation

long Hypertable::TestSource::m_cur_line
private

Definition at line 59 of file TestSource.h.

std::ifstream Hypertable::TestSource::m_fin
private

Definition at line 58 of file TestSource.h.

DynamicBuffer Hypertable::TestSource::m_key_buffer
private

Definition at line 60 of file TestSource.h.

int64_t Hypertable::TestSource::m_min_timestamp
private

Definition at line 62 of file TestSource.h.

Schema* Hypertable::TestSource::m_schema
private

Definition at line 57 of file TestSource.h.

DynamicBuffer Hypertable::TestSource::m_value_buffer
private

Definition at line 61 of file TestSource.h.


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