GigaSpaces XAP 9.7.2 API

com.gigaspaces.annotation.pojo
Annotation Type CompoundSpaceIndex


@Target(value=TYPE)
@Retention(value=RUNTIME)
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
 String[] paths
           
 
Optional Element Summary
 boolean unique
          Indicates if unique constraint is applied for this index.
 

Element Detail

paths

public abstract String[] paths

unique

public abstract boolean unique
Indicates if unique constraint is applied for this index. The constraint is per partition. default is false

Default:
false

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.