@Retention(value=CLASS)
@Target(value=FIELD)
public @interface Index
It is highly recommended to index properties that are used in a query to improve query performance.
To fine tune indexing of a property you can override the default index type().
Note: indexes are currently not supported for byte array, float or double properties.
| Modifier and Type | Optional Element and Description |
|---|---|
IndexType |
type
Sets the
IndexType, defaults to IndexType.DEFAULT. |
public abstract IndexType type
IndexType, defaults to IndexType.DEFAULT.