@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface RiakIndex
You do not need to specify the index type prefix (_bin/_int). It will be
inferred from the type of the annotated field.
Only String/Long/long or Set
NOTE: if there are *multiple* values for the same named index and the field in the domain object is an long, Long, or String only the 1st will find it's way into the domain object
For example:
public class MyClass {
\@RiakKey
private String myKeyString;
\@RiakIndex("email")
private String emailAddress; // will be indexed in email_bin index
\@RiakIndex("age")
private long age; // will be index in age_int index
}
JSONConverter
,
DefaultBucket
public abstract String name
Copyright © 2013. All Rights Reserved.