Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

lambda avatar image
lambda asked jaroslaw.grabowski_50515 answered

How to use a java class for mapping in spark-cassandra-connector?

If for some reasons I have columns like "_id" and "_order" in Cassandra's table.

I also have pojo with corresponding fields (id and order) and I want to use that pojo in expression provided below. How can I achieve that these fields will be correct mapping to columns?

javaFunctions(rdd).writerBuilder("test", "some_table", mapToRow(JavaClass.class)).saveToCassandra();
spark-cassandra-connectorjava
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

jaroslaw.grabowski_50515 avatar image
jaroslaw.grabowski_50515 answered
Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.