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
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends ISpaceValueGetter<ServerEntry>>Reference to a class that implementsISpaceValueGetter. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefines index name.Defines the index type.booleanDefines whether this index is unique or not -
Field Summary
Fields
-
Field Details
-
EMPTY_VALUE
- See Also:
-
-
Element Details
-
indexValueGetter
Class<? extends ISpaceValueGetter<ServerEntry>> indexValueGetterReference 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 nameDefines index name. Used to find the right index duting query matching.- Default:
- ""
-
unique
boolean uniqueDefines whether this index is unique or not- Default:
- false
-
type
SpaceIndexType typeDefines the index type.- Default:
- EQUAL
-