com.spotright.polidoro.model

RowPath

case class RowPath[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 constructions
import 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 columns
import 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)

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

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 ColPath
import CompositeFactory.CF
val scfClusters = cfOutlets \ cassCluster \ CF("Colorado", "name")
Linear Supertypes
Serializable, Serializable, Product, Equals, modelish.RowPathish[K], modelish.ColFamish, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RowPath
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RowPathish
  7. ColFamish
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RowPath(colfam: ColFam, rowkey: K)(implicit arg0: Manifest[K])

Type Members

  1. case class ListWithRangeRunner[N](acsN: AnnotatedCompositeSerializer[N]) extends Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def \[N, V](name: N, value: V, ttl: Int)(implicit arg0: Manifest[N], arg1: Manifest[V]): Column[K, N, V]

  7. def \[N, V](name: N, value: V)(implicit arg0: Manifest[N], arg1: Manifest[V]): Column[K, N, V]

  8. def \[N](name: N)(implicit arg0: Manifest[N]): ColumnPath[K, N]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val cfname: String

    Definition Classes
    RowPathColFamish
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. val colfam: ColFam

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val keyspace: Keyspace

    Definition Classes
    RowPathColFamish
  18. def list[N](start: N, end: N, reversed: Boolean, limit: Int)(implicit arg0: Manifest[N]): ColumnList[N]

  19. def list[N](pred: RangePredicate[N])(implicit arg0: Manifest[N]): ColumnList[N]

  20. def list[N](pred: ColumnPredicate[N])(implicit arg0: Manifest[N]): ColumnList[N]

  21. def list[N](implicit arg0: Manifest[N]): ColumnList[N]

  22. def listPred[N](pred: Predicate[N])(implicit arg0: Manifest[N]): ColumnList[N]

  23. def listWith[N](acsN: AnnotatedCompositeSerializer[N]): ColumnList[N]

  24. def listWithRange[N](acsN: AnnotatedCompositeSerializer[N]): ListWithRangeRunner[N]

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. val rowkey: K

    Definition Classes
    RowPathRowPathish
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from modelish.RowPathish[K]

Inherited from modelish.ColFamish

Inherited from AnyRef

Inherited from Any

Ungrouped