Package io.objectbox.annotation
Annotation Type Index
-
@Retention(CLASS) @Target(FIELD) public @interface Index
Specifies that the property should be indexed.It is highly recommended to index properties that are used in a query to improve query performance. When building a query, make sure to use case sensitive String conditions to utilize the index.
To fine tune indexing of a property you can override the default index
type()
.Note: indexes are currently not supported for string array, byte array, float or double properties.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description IndexType
type
Sets theIndexType
, defaults toIndexType.DEFAULT
.
-
-
-
Element Detail
-
type
IndexType type
Sets theIndexType
, defaults toIndexType.DEFAULT
.- Default:
- io.objectbox.annotation.IndexType.DEFAULT
-
-