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
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates if unique constraint is applied for this index.
  • Element Details

    • unique

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