Space Document
The GigaSpaces document API exposes the Space Where GigaSpaces data is stored. It is the logical cache that holds data objects in memory and might also hold them in layered in tiering. Data is hosted from multiple SoRs, consolidated as a unified data model. as Document Store. A document, which is represented by the class SpaceDocument
, is essentially a collection of key-value pairs, where the keys are strings and the values are primitives, String
, Date
, other documents, or collections thereof. Most importantly, the Space is aware of the internal structure of a document, and so can index document properties at any nesting level and expose rich query semantics for retrieving documents.
This section discusses the basic Document API, and also explains GigaSpaces support for extending the Document class to provide a type-safe wrapper for documents that is much easier to code with, while maintaining the dynamic schema.
GigaSpaces also supports interoperability between Concrete Object and Document Space entries.
This topic includes the following sections: