Annotation Interface CustomSpaceIndex


@Target(TYPE) @Retention(RUNTIME) @Repeatable(CustomSpaceIndexes.class) public @interface CustomSpaceIndex
Defines an annotation for defining custom space indexes. Can be defined on the pojo class or as part of the @SpaceClass(customIndexes) For example: When only one custom index is needed:
Since:
7.1
Author:
Anna Pavtulov
  • Field Details

  • Element Details

    • indexValueGetter

      Class<? extends ISpaceValueGetter<ServerEntry>> indexValueGetter
       Reference to a class that implements ISpaceValueGetter .
       The implementation defines how the index value is extracted
       from the IServerEntry - the space internal object representation
       
    • name

      String name
      Defines index name. Used to find the right index duting query matching.
      Default:
      ""
    • unique

      boolean unique
      Defines whether this index is unique or not
      Default:
      false
    • type

      Defines the index type.
      Default:
      EQUAL