Re: Trying to save in cassandra with "SomeColumns"

2018-03-31 Thread Eric Stevens
You can fill in var-args with SomeColumns(myColumns:_*) style syntax. See for example: https://stackoverflow.com/questions/1832061/scala-pass-seq-to-var-args-functions On Fri, Mar 30, 2018 at 6:15 PM Guillermo Ortiz wrote: > > The poblem is that I have a method from Spark to insert into Cassand

Trying to save in cassandra with "SomeColumns"

2018-03-30 Thread Guillermo Ortiz
The poblem is that I have a method from Spark to insert into Cassandra: childrenToInsertToParent.saveToCassandra("keyspace", "table", SomeColumns("a","b","c","d")) I have to put an sequence of String to say what columns I want to save. I would like to do it dinamically, to do that I have to save t