Tuples and Fields

ActiveSpaces spaces store data in tuples.

A tuple:

  • Is a container for a sequence of field.
  • Is equivalent to a row in a database.
  • Represents a set of related data.

A field is similar to a column in a database table. Each field has a specific name, type and value, as shown in the following figure.

Tuples and fields function like rows and columns in a traditional database.

Field Definition

A tuple can be seen as a kind of map in which fields can be put or removed. A tuple can also be seen as a self-describing message. Tuples are platform independent, and can be serialized and deserialized.

For information on defining tuple fields, see FieldDef Methods.

Related reference