#include <transaction_log_entry.h>
Public Member Functions | |
TransactionLogEntry (drizzled::ReplicationServices::MessageType in_type, off_t in_offset, size_t length) | |
const char * | getTypeAsString () const |
off_t | getOffset () const |
size_t | getLengthInBytes () const |
Private Attributes | |
enum drizzled::ReplicationServices::MessageType | type |
The type of the entry. | |
off_t | offset |
Offset into the log file. | |
size_t | length |
Length in bytes of the entry. |
Represents a single entry in the transaction log.
Definition at line 40 of file transaction_log_entry.h.
size_t TransactionLogEntry::getLengthInBytes | ( | ) | const |
Returns the length of the entry in bytes
Definition at line 71 of file transaction_log_entry.cc.
References length.
off_t TransactionLogEntry::getOffset | ( | ) | const |
Returns the entry's offset in the log
Definition at line 66 of file transaction_log_entry.cc.
References offset.
Referenced by TransactionLogIndex::addEntry().
const char * TransactionLogEntry::getTypeAsString | ( | ) | const |
Returns a string representation of the entry type
Definition at line 61 of file transaction_log_entry.cc.
References type.