Skip to content

Commit 1c91939

Browse files
@Index: drop maxValueLength support.
1 parent 1aad6ce commit 1c91939

File tree

1 file changed

+1
-11
lines changed
  • objectbox-java-api/src/main/java/io/objectbox/annotation

1 file changed

+1
-11
lines changed

objectbox-java-api/src/main/java/io/objectbox/annotation/Index.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,10 @@
2626
/**
2727
* Specifies that the property should be indexed, which is highly recommended if you do queries using this property.
2828
*
29-
* To fine tune indexing you can specify {@link IndexType} and/or use {@link #maxValueLength()} if necessary.
29+
* To fine tune indexing you can specify {@link IndexType} if necessary.
3030
*/
3131
@Retention(RetentionPolicy.CLASS)
3232
@Target(ElementType.FIELD)
3333
public @interface Index {
3434
IndexType type() default IndexType.DEFAULT;
35-
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
43-
int maxValueLength() default 0;
44-
4535
}

0 commit comments

Comments
 (0)