IndexType enum Null safety
IndexType can be used to change what type ObjectBox uses when indexing a property.
- hash → const IndexType
Uses a 32-bit hash of the field value; default for String properties.
Hash collisions should be sporadic and shouldn't impact performance in practice. Because it requires less storage space, it's usually a better choice than hash64.
- hash64 → const IndexType
Uses a long hash of the field value to build the index. Uses more storage space than hash, thus should be used with consideration.
- value → const IndexType
Uses property values to build the index. This is a default for scalar properties.
→ const List<
A constant List of the values in this enum, in order of their declaration.