|
GigaSpaces XAP 7.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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;
}
To index 'personalInfo.id' using extended indexing and 'personalInfo.socialSecurity' using basic indexing:
3. @SpaceIndexes(
{ @SpaceIndex(path = "id", type = IndexType.EXTENDED),
- Since:
- 7.1
- Author:
- Anna Pavtulov
Optional Element Summary
String
path
Defines the index property path.
SpaceIndexType
type
The type of the index - default is BASIC index
path
public abstract String path
- Defines the index property path.
The path specifies which property path is indexed.
If none is defined - the property itself is indexed.
- Returns:
- Default:
- ""
type
public abstract SpaceIndexType type
- The type of the index - default is BASIC index
- Returns:
- Default:
- BASIC
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
GigaSpaces XAP 7.1 API
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
Copyright © GigaSpaces.