com.spotright.polidoro.model

ColFam

case class ColFam(keyspace: Keyspace, cfname: String, hasCompositeKey: Boolean = false, hasCompositeName: Boolean = false) extends modelish.ColFamish with Product with Serializable

Cassandra Column Family

A column family consists of a keyspace and a family name. Column families in Polidoro only model CFs (although CompositeType keys and columnNames are supported). If you need to access an SCF you will need to roll the Astyanax code yourself.

By convention the value a ColFam is assigned to should use the following prefixes

cf- basic column family scf- composite columnNames kcf- composite keys kscf- composite keys and columnNames

Operations

A ColFam can be used to construct a com.spotright.polidoro.model.RowPath. RowPath construction can also handle CompositeType keys.

// RowPath[String]
val rp = cfUsers \ username

// RowPath[Composite]
import CompositeFactory.CF
val rpc = scfCities \ CF(state, city)    // RowPath[Composite]

A colfam can answer if it has composite keys or columnNames and shortcuts for the various combinations are also defined.

Linear Supertypes
Serializable, Serializable, Product, Equals, modelish.ColFamish, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ColFam
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ColFamish
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ColFam(keyspace: Keyspace, cfname: String, hasCompositeKey: Boolean = false, hasCompositeName: Boolean = false)

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 \[K](key: K)(implicit arg0: Manifest[K]): RowPath[K]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val cfname: String

    Definition Classes
    ColFamColFamish
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  13. val hasCompositeKey: Boolean

  14. val hasCompositeName: Boolean

  15. def isCf: Boolean

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def isKCf: Boolean

  18. def isKScf: Boolean

  19. def isScf: Boolean

  20. val keyspace: Keyspace

    Definition Classes
    ColFamColFamish
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. 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.ColFamish

Inherited from AnyRef

Inherited from Any

Ungrouped