Kyoto Tycoon
|
Interface to access a record. More...
#include <kttimeddb.h>
Public Member Functions | |
virtual | ~Visitor () |
Destructor. | |
virtual const char * | visit_full (const char *kbuf, size_t ksiz, const char *vbuf, size_t vsiz, size_t *sp, int64_t *xtp) |
Visit a record. | |
virtual const char * | visit_empty (const char *kbuf, size_t ksiz, size_t *sp, int64_t *xtp) |
Visit a empty record space. | |
virtual void | visit_before () |
Preprocess the main operations. | |
virtual void | visit_after () |
Postprocess the main operations. | |
Static Public Attributes | |
static const char *const | NOP |
Special pointer for no operation. | |
static const char *const | REMOVE |
Special pointer to remove the record. |
Interface to access a record.
virtual kyototycoon::TimedDB::Visitor::~Visitor | ( | ) | [virtual] |
Destructor.
virtual const char* kyototycoon::TimedDB::Visitor::visit_full | ( | const char * | kbuf, |
size_t | ksiz, | ||
const char * | vbuf, | ||
size_t | vsiz, | ||
size_t * | sp, | ||
int64_t * | xtp | ||
) | [virtual] |
Visit a record.
kbuf | the pointer to the key region. |
ksiz | the size of the key region. |
vbuf | the pointer to the value region. |
vsiz | the size of the value region. |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
xtp | the pointer to the variable into which the expiration time from now in seconds is assigned. The initial value is the absolute expiration time. |
virtual const char* kyototycoon::TimedDB::Visitor::visit_empty | ( | const char * | kbuf, |
size_t | ksiz, | ||
size_t * | sp, | ||
int64_t * | xtp | ||
) | [virtual] |
Visit a empty record space.
kbuf | the pointer to the key region. |
ksiz | the size of the key region. |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
xtp | the pointer to the variable into which the expiration time from now in seconds is assigned. |
virtual void kyototycoon::TimedDB::Visitor::visit_before | ( | ) | [virtual] |
Preprocess the main operations.
virtual void kyototycoon::TimedDB::Visitor::visit_after | ( | ) | [virtual] |
Postprocess the main operations.
const char* const kyototycoon::TimedDB::Visitor::NOP [static] |
Special pointer for no operation.
const char* const kyototycoon::TimedDB::Visitor::REMOVE [static] |
Special pointer to remove the record.