Skip to content

Commit

Permalink
@Index: drop maxValueLength support.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Jul 23, 2018
1 parent 1aad6ce commit 1c91939
Showing 1 changed file with 1 addition and 11 deletions.
Expand Up @@ -26,20 +26,10 @@
/**
* Specifies that the property should be indexed, which is highly recommended if you do queries using this property.
*
* To fine tune indexing you can specify {@link IndexType} and/or use {@link #maxValueLength()} if necessary.
* To fine tune indexing you can specify {@link IndexType} if necessary.
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.FIELD)
public @interface Index {
IndexType type() default IndexType.DEFAULT;

/**
* Not implemented yet!!
* Limit the length of index values (see {@link IndexType#VALUE}) for property types String and byte[].
* This can save storage for long values if the differ in the beginning.
* Valid values are in the range of 1-450.
*/
@Internal // Not really internal, but not yet implemented
int maxValueLength() default 0;

}

0 comments on commit 1c91939

Please sign in to comment.