File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
objectbox-java-api/src/main/java/io/objectbox/annotation Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2121import java .lang .annotation .RetentionPolicy ;
2222import java .lang .annotation .Target ;
2323
24+ import io .objectbox .annotation .apihint .Internal ;
25+
2426/**
2527 * Specifies that the property should be indexed, which is highly recommended if you do queries using this property.
2628 *
3133public @interface Index {
3234 IndexType type () default IndexType .DEFAULT ;
3335
34- /** Only allowed for {@link IndexType#VALUE} and types String and byte[]. */
36+ /**
37+ * Not implemented yet!!
38+ * Limit the length of index values (see {@link IndexType#VALUE}) for property types String and byte[].
39+ * This can save storage for long values if the differ in the beginning.
40+ * Valid values are in the range of 1-450.
41+ */
42+ @ Internal // Not really internal, but not yet implemented
3543 int maxValueLength () default 0 ;
3644
3745}
You can’t perform that action at this time.
0 commit comments