Package io.objectbox.annotation
Annotation 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
-
Element Details
-
type
IndexType typeSets theIndexType
, defaults toIndexType.DEFAULT
.- Default:
- DEFAULT
-