case classRowPath[K](colfam: ColFam, rowkey: K)(implicit evidence$1: Manifest[K]) extends RowPathish[K] with Product with Serializable
Cassandra Column Family Row
A RowPath encapsulates the columns under a given key.
Operations
Any RowPath can be used to recover the columns under the key possibly
restrained by Column or Range predicate. The list[N] method can be used to query
on column names of type N.
// All columns. Requires type annotation for column name deserializer.val cfr = (cfUsers \ username).list[String]
val maybeName = Option(cfr.getColumn("name")).map{hcol => SerDes[String].fromByteBuffer(hcol.value)}
// named columns - equivalent constructionsimport com.spotright.polidoro.model._
val cfr = (cfUsers \ username) list ColumnPredicate(List("name", "age"))
val cfr = (cfUsers \ username) list ColumnPredicate("name", "age")
val cfr = (cfUsers \ username) list List("name", "age") // any TraversableOnce// ranged columnsimport com.spotright.polidoro.model._
val cfr = (cfUsers \ username) list RangePredicate(startStr, endStr, reversed=false, limit=Int.MaxValue)
val cfr = (cfUsers \ username) list(startStr, endStr, reversed = false, limit = Int.MaxValue)
val col = (scfClusters \ cassCluster).get(CF("Colorado", "name"))
A RowPath can query Composite Name column lists with listWith and listWithRange/using. See TestCompColname.scala.
A RowPath can be used to construct a Column (including columns with composite column names).
val col = cfUsers \ username \ ("employer", "SpotRight")
// Note the final representation in Cass is different from above.import ColumnFactory.CF
val compCol = scfClusters \ cassCluster \ (CF("Colorado", "name"), "MilkyWay")
You can also construct a ColumnPath. These can be used for get (non-Composite) and in Delete Operations.
val colpath = cfUsers \ username \ "location"// Composite ColPathimport CompositeFactory.CF
val scfClusters = cfOutlets \ cassCluster \ CF("Colorado", "name")
Cassandra Column Family Row
A RowPath encapsulates the columns under a given key.
Operations
Any RowPath can be used to recover the columns under the key possibly restrained by Column or Range predicate. The
list[N]
method can be used to query on column names of type N.A RowPath can get a single composite column using getWith. There are shortcuts (get) if getting a com.spotright.polidoro.serialization.CompStr2 or com.spotright.polidoro.serialization.CompStr3
A RowPath can query Composite Name column lists with listWith and listWithRange/using. See TestCompColname.scala.
A RowPath can be used to construct a Column (including columns with composite column names).
You can also construct a ColumnPath. These can be used for get (non-Composite) and in Delete Operations.