anyone ?
I know that there isn't much experience yet with Couchbase connector

On Tue, Dec 1, 2015 at 4:12 PM, Eyal Sharon <[email protected]> wrote:

> Hi ,
>
> I am still having problems with Couchbase connector . Consider the
> following code fragment which aims to create a Json document to send to
> Couch
>
>
>
>
>
>
> *val muCache = {  val values = JsonArray.from(mu.toArray.map(_.toString))  
> val content = JsonObject.create().put("feature_mean", 
> values).put("features",mu.size)  JsonDocument.create("mu",content)}*
>
> *mu is vector of double
>
>
> This fails because JsonArray is a Java method which doesn't except scala's 
> string. Got this error
>
> *Unsupported type for JsonArray: class [Ljava.lang.String;*
>
>
> 1- What could be a solution  for that  ?
>
> 2- For a more clean usage  ,I thought of using concrete Scala Json  
> libraries, but neither of them supports JsonDocuments
>
> I followed the implantation from  Couchbases spark connector documentation   
> -   
> http://developer.couchbase.com/documentation/server/4.0/connectors/spark-1.0/spark-intro.html
>
>
> Thanks !
>
>
>
>
>
>
>
>

-- 


*This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are 
addressed. Please note that any disclosure, copying or distribution of the 
content of this information is strictly forbidden. If you have received 
this email message in error, please destroy it immediately and notify its 
sender.*

Reply via email to