Replying to myself, but with the solution.
After some discussion on a Scala list, I was able to get the below Scala
code to compile. There were two important changes.
1) Using StringBinIndex.named(name) to build the index rather than
StringBinIndex.Name(name), due to the interop issues.
2) Parame
Hi,
Reading further, it seems it's simply not possible to get Scala to work
with the static protected inner classes of the Index types in the Java
client :(
In the Java client, is there any other way to instantiate indexes? I
suspect not, but figure I could ask just in case.
Cheers
Toby
On Wed,
Hi Luke,
Thanks for the quick response.. That link does sound like it's describing
the problem.
I'll see if I can figure out a way to get around it :(
The rest of the code works lovely with thin wrappers around the java
client, and it's only now in the project that I'm trying to get the indexes
add
Hi Toby,
I think you're running into something similar to this:
http://www.scala-lang.org/old/node/1381.html
which links to this: https://issues.scala-lang.org/browse/SI-1806
Not being familar with Java / Scala interop I hope that the discussion
and further links there can help you out.
--
Luke
Hi,
I'm having a lot of trouble getting a particular part of the Riak java
client to work when called from Scala.
There's a Java class which I'm not allowed to instantiate directly, but
must instead call an embedded subclass's static constructor method.
ie.
import com.basho.riak.client.core.query