Skip to content

Commit e06843c

Browse files
committed
updated docs for @Index.maxValueLength
1 parent dec27fe commit e06843c

File tree

1 file changed

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

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import 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
*
@@ -31,7 +33,13 @@
3133
public @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
}

0 commit comments

Comments
 (0)