Created
June 25, 2014 05:18
-
-
Save RussellSpitzer/c0fb173df1af6448a209 to your computer and use it in GitHub Desktop.
Seq[AnyRef] to Java Driver Set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeSet != immutable.Nil) | |
{ | |
typeColTables.foreach { table => | |
val statement = session.prepare(s"INSERT INTO $table (pkey, data1) VALUES (?,?)") | |
val javaSet = seqAsJavaList(typeSet) | |
typeData.foreach { value => | |
val normstatement = new SimpleStatement(s"INSERT INTO $table (pkey, data1) VALUES (?,?)", value, javaSet) | |
//val bs = statement.bind(value, javaSet) | |
//println(seqAsJavaList(typeSet).getClass.toString) | |
//println(statement) | |
session.execute(normstatement) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment