Package com.gigaspaces.annotation.pojo
Annotation Interface CompoundSpaceIndex
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(CompoundSpaceIndexes.class)
public @interface CompoundSpaceIndex
Defines a compound space index.
Should be defined on the Pojo level
Segements of the compound index should be specified. Each segment must be a property or a path
within a property
Only basic indices are supported
For example:
The Pojo has 2 properties 'socialSecurity' property and 'personalInfo' which has a 'name'
property
A compound index can be defined using both properties
- Since:
- 9.5
- Author:
- Yechiel Fefer
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates if unique constraint is applied for this index.
-
Element Details
-
paths
String[] paths
-
-
-
unique
boolean uniqueIndicates if unique constraint is applied for this index. The constraint is per partition. default is false- Default:
- false
-