com.datastax.spark.connector.mapper
Produces ColumnMap objects that map class T properties to columns in a given Cassandra table.
T
You can associate a custom ColumnMapper object with any of your classes by providing an implicit ColumnMapper in the companion object of the mapped class:
ColumnMapper
CREATE TABLE kv(key int primary key, value text);
case class KeyValue(k: Int, v: String) object KeyValue { implicit val columnMapper = new DefaultColumnMapper[KeyValue](Map("k" -> "key", "v" -> "value")) }
Produces ColumnMap objects that map class
Tproperties to columns in a given Cassandra table.You can associate a custom
ColumnMapperobject with any of your classes by providing an implicitColumnMapperin the companion object of the mapped class: