@Target(value=METHOD) @Retention(value=RUNTIME) public @interface SpaceIndex
Defines a space index.
Can be defined on the property getter or as part of @SpaceIndexes when multiple indexes are
used.
Indexes on nested object properties are defined on the nested object getter.
For example:
To index the 'socialSecurity' property using extended indexing:
1. @SpaceIndex(type = IndexType.EXTENDED)
public long getSocialSecurity() {
return socialSecurity;
}
To index 'personalInfo.name':
2. @SpaceIndex(path = "name")
public Info getPersonalInfo() {
return personalInfo;
}
Modifier and Type | Optional Element and Description |
---|---|
String |
path
Defines the index property path.
|
SpaceIndexType |
type
The type of the index - default is BASIC index
|
boolean |
unique
Indicates if unique constraint is applied for this index.
|
public static final String EMPTY
public abstract String path
public abstract SpaceIndexType type
Copyright © GigaSpaces.