This struct may be used by user-defined CSKF callback functions. For example:
w_rc_t example_stringCSKF( const rid_t& , // not used const object_t& obj_in, key_cookie_t cookie, // generic_CSKF_cookie factory_t& , // not used skey_t* out ) { // Cast the cookie to a pointer to a generic_CSKF_cookie. generic_CSKF_cookie& K = *(generic_CSKF_cookie*)(cookie.make_ptr()); bool is_in_header = false; // Populate the output : point to key in body of record/object new(out) skey_t(obj_in, K.offset, K.length, is_in_header); return RCOK; }
Definition at line 828 of file sort_s.h.
Public Member Functions | |
void | clear () |
Public Attributes | |
LEXFUNC | func |
value == noLEXFUNC means don't lexify | |
bool | in_hdr |
True if the key is in the record header, false if in body. | |
smsize_t | offset |
Offset from start of record header or body. | |
smsize_t | length |
Key length. |