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::TransferLog Class Reference

Creates a unique range transfer log pathname. More...

#include <TransferLog.h>

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

Public Member Functions

 TransferLog (FilesystemPtr &fs, const string &toplevel_dir, const string &table_id, const string &end_row)
 Constructor. More...
 
string & name ()
 Returns pathname of transfer log. More...
 

Private Attributes

string m_logname
 Full path name of transfer log. More...
 

Detailed Description

Creates a unique range transfer log pathname.

Definition at line 46 of file TransferLog.h.

Constructor & Destructor Documentation

Hypertable::TransferLog::TransferLog ( FilesystemPtr fs,
const string &  toplevel_dir,
const string &  table_id,
const string &  end_row 
)
inline

Constructor.

Initializes m_logname with a new transfer log path with the following format:

<toplevel-dir>/tables/<table-id>/_xfer/<end-row-hash>_<timestamp>

Where the <end-row-hash> component is the base-64 MD5 hash of end_row and <timestamp> is the current time in Epoch time.

Parameters
fsPointer to filesystem
toplevel_dirToplevel database directory in fs
table_idTable identifier of corresponding table
end_rowEnd row of corresponding range

Definition at line 62 of file TransferLog.h.

Member Function Documentation

string& Hypertable::TransferLog::name ( )
inline

Returns pathname of transfer log.

Returns
Name of transfer log.

Definition at line 80 of file TransferLog.h.

Member Data Documentation

string Hypertable::TransferLog::m_logname
private

Full path name of transfer log.

Definition at line 85 of file TransferLog.h.


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