[prev] 63 [next]

Converting Records to Tuples (cont)

A Tuple can be defined as
  • a list of field descriptors for a record instance
    (where a FieldDesc gives (offset,length,type) information)
  • along with a reference to the Record data

typedef struct {
    ushort    nfields;  // # fields
    FieldDesc fields[]; // field descriptions
    Record    data;
} Tuple;

Fields are derived from relation descriptor + record instance data.