boom
great idea
let the discussion begin
heh
hmm, what’s happening there?
i think cider is telling me the argument options for CassandraJavaUtil/mapTupleToRow
and since it takes a bunch of TupleN args
etc
ahh
haha
make sense
the saveToCassandra stuff is starting to make a little more sense
i think it could be wrapped up pretty well
cool cool
https://gist.github.com/joshrotenberg/36968402d0e01fbc0225914f1deb36d5
thats the “tested in my cider-scratch buffer” version of saving the word count results in cassandra
that interop ain’t so pretty, though
this old repo was using mapToRow which needs a bean
which is probably why it wasn’t working
i think the mapTupleToRow stuff is newer
nice! that’s not bad at all
yeah
you could easily wrap those lines into a save-to-cassandra function
mainly comes down to how to handle mapping the data into a row
and whether you do it automatically somehow
could do multi-arity
(save-to-cassandra rdd) which just tries to figure it out
(save-to-cassandra rdd {“column-name” column-class})
yeah that sounds reasonable
i’m writing a little test/verification app for our new cluster
i’ll try it out there first