You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current RiakIndex annotation requires the name to be static like "email" here:
@RiakIndex(name="email")
public Set<String> emailIndx;
We need a way to annotate dynamic indices like:
@RiakIndex
public Map<String, String> references;
Where each key in the Map is a 2i key to index, and each value is the corresponding 2i value.
The old RiakObject based API can do this.
Is this something basho can implement or would you be willing to merge a PR on it?
The text was updated successfully, but these errors were encountered:
Basho-JIRA
changed the title
Annotation-based 2i with dynamic index names
Annotation-based 2i with dynamic index names [JIRA: CLIENTS-1017]
Oct 21, 2016
PR's are very welcome! This seems like a small design regression from when we rebuilt the client, so I'd be happy to review and merge anything provided.
Looks like for this one we'd need to add the appropriate type sniffing code in RiakIndexField and RiakIndexMethod, to detect a map of the proper key type.
Also, I can't find any examples in the 1.4 Client where you can assign the RiakIndex annotation to a Map, do you have any examples you can share / link to?
The current RiakIndex annotation requires the name to be static like "email" here:
We need a way to annotate dynamic indices like:
Where each key in the Map is a 2i key to index, and each value is the corresponding 2i value.
The old RiakObject based API can do this.
Is this something basho can implement or would you be willing to merge a PR on it?
The text was updated successfully, but these errors were encountered: