The Put Operation Storing Data into a Space

Your application can store data into a space by using the space’s put method and passing it a tuple as its argument.

Once the tuple is in the space, it can be accessed by any other application using that space. Existing entries are replaced with new ones, which means that if there was already a tuple with the same key field values stored in the space, it is overwritten by the new tuple.

For information on performing a Put, see Put Operation for Storing a Tuple in a Space.

When a tuple is stored into a space, it is validated against the space definition.

  • Field names and types are checked against the fields defined for the space.

    If a tuple's field does not match the space's definition, ActiveSpaces attempts to automatically convert the field’s value to the desired type as long as the field type is numerical (no lexical casting).

  • Fields marked as nullable need not be present in the tuple, but if they are present, their type must match or be able to be upcasted.
  • Fields present in the tuple that are not defined in the space's definition are not stored in the space
Related reference