KMR
Public Attributes | List of all members
kmr_ntuple Struct Reference

N-Tuple. More...

#include <kmr.h>

Public Attributes

unsigned short index
 
unsigned short len [1]
 
int marker
 
unsigned short n
 

Detailed Description

N-Tuple.

An n-tuple is a list of opaque values, intended to store a list of data items as a key or a value in a key-value stream. It is for the utility purpose. N is the number of entries. MARKER can be any value and it is used as a tag for a direct-sum, which identifies which key-value stream an n-tuple originally belonged. Use kmr_reset_ntuple() and kmr_put_ntuple() to create n-tuples, and kmr_add_ntuple() to add n-tuples in key-value stream. The data items in an n-tuple are a sequence of pairs – a length followed by opaque bytes. Note the marker and the item length be kept the same when n-tuples are used as keys for sorting.

Definition at line 731 of file kmr.h.


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