Class Metadata
Name
Syntax | name |
Description | Contains the full qualified name of the specified class. Because this attribute is of the XML type ID , there can only be one class-descriptor per class. |
Example:
<gigaspaces-mapping>
<class name="Model.Person">
</class>
</gigaspaces-mapping>
Alias name
Syntax | alias-name |
Argument | boolean |
Description | Gives the ability to map a C# class name (including namespace) to a space class name |
Example:
<gigaspaces-mapping>
<class name="Model.Person" alias-name="CommonPerson">
</class>
</gigaspaces-mapping>
Persistence
Syntax | persist |
Argument | boolean |
Default | false |
Description | This field indicates the persistency mode of the object. When a space is defined as persistent, a true value for this attribute will persist objects of this type. |
Example:
<gigaspaces-mapping>
<class name="Model.Person" persist="true">
</class>
</gigaspaces-mapping>
Replication
Syntax | replicate |
Argument | boolean |
Default | false |
Description | This field indicates the replication mode of the object. When a space is defined as replicated, a true value for this attribute will replicate objects of this type. |
Example:
<gigaspaces-mapping>
<class name="Model.Person" replicate="true">
</class>
</gigaspaces-mapping>
FIFO Support
Syntax | fifo |
Argument | FifoSupport |
Default | off |
Description | Enabling FIFO FIFO is an acronym for first in, first out, a method for organizing the manipulation of a data structure where the oldest entry, or "head" of the queue, is processed first. operations. |
Example:
<gigaspaces-mapping>
<class name="Model.Person" fifo="operation">
</class>
</gigaspaces-mapping>
Storage Type
Syntax | storage-type |
Argument | StorageType |
Default | object |
Description | To determine a default storage type for each non primitive property for which a (field level) storage type was not defined. |
Example:
<gigaspaces-mapping>
<class name="Model.Person" storage-type="binary" />
</gigaspaces-mapping>
Inherit Index
Syntax | inherit-indexes |
Argument | boolean |
Default | true |
Description | Whether to use the class indexes list only, or to also include the superclass' indexes. If the class does not define indexes, superclass indexes are used. Options: - false – class indexes only.- true – class indexes and superclass indexes. |
Example:
<gigaspaces-mapping>
<class name="Model.Person" inherit-indexes="false" />
</gigaspaces-mapping>
Compound Index
Syntax | compound-index paths |
Argument(s) | string |
Values | attribute name(s) |
Description | Indexes can be defined for multiple properties of a class |
Example:
<gigaspaces-mapping>
<class name="Data" >
<compound-index paths="Data1, Data2"/>
...
</class>
</gigaspaces-mapping>