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
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Scala cannot access private inner classes, making Indexes nearly impossible to instantiate [JIRA: CLIENTS-689] #584
changed the title [-]Scala cannot access private inner classes, making Indexes nearly impossible to instantiate[/-][+]Scala cannot access private inner classes, making Indexes nearly impossible to instantiate [JIRA: CLIENTS-689][/+]on Dec 17, 2015
Here is a code snippet we are using in Spark Connector [link link|https://github.com/basho/spark-riak-connector/blob/develop/test-utils/src/main/scala/com/basho/riak/spark/rdd/RiakFunctions.scala#L124-L143]. It might be a good idea for me to review 2i java client implementation for the discrepancies
Hi Sergey, that setup of parameterised getIndex() with the Index.named() constructor (instead of the Index.Name() constructor) was how I managed to get it to work in the end.
However the documentation seems to prefer the Index.Name() constructor.
It's been over a month.. took me a while to find it again. http://imgur.com/wMDiue1
(The javadoc for the riak client seems kinda sucky -- the URL doesn't contain the info needed to get back to the page it's actually displaying)
The current recommended way of getting an index is something like:
riakObj.getIndexes.getIndex( StringBinIndex.Name("example") )
Except that the .Name class within StringBinIndex cannot be accessed from Scala, and that is not going to change.
Making the .Name class and constructors on RiakIndexes public would sort this out.