com.spotright.polidoro.model

CompositeFactory

object CompositeFactory

Builder for Composites

The simplest way to use this object is

import com.spotright.polidoro.model._

// In some later scope
import CompositeFactory.CF
val composite = CF("TX", 77043, "Houston")

The CF application uses the CV{N} case class constructors and end up returning a com.netflix.astyanax.model.Composite which has a trait applied which allows the gte and lte methods on the CV{N} case classes to be called. This is very helpful in range queries such as

val start = CF("Houston")
val needsWork = (scfCities \ city).list(start = start, end = start.gte)

Please note that these helper methods do not modify the Composite components. There are String helpers in the model package to increment and decrement the last character of a string. In particular for lte to do what you expect you need to decr the final string component.

See also

com.spotright.polidoro.model.PrefixPredicateCF

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompositeFactory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. val CF: CompositeFactory.type

  7. def apply[A, B, C, D, E](a: A, b: B, c: C, d: D, e: E)(implicit arg0: Manifest[A], arg1: Manifest[B], arg2: Manifest[C], arg3: Manifest[D], arg4: Manifest[E]): Composite with CV5Shadow[A, B, C, D, E]

  8. def apply[A, B, C, D](a: A, b: B, c: C, d: D)(implicit arg0: Manifest[A], arg1: Manifest[B], arg2: Manifest[C], arg3: Manifest[D]): Composite with CV4Shadow[A, B, C, D]

  9. def apply[A, B, C](a: A, b: B, c: C)(implicit arg0: Manifest[A], arg1: Manifest[B], arg2: Manifest[C]): Composite with CV3Shadow[A, B, C]

  10. def apply[A, B](a: A, b: B)(implicit arg0: Manifest[A], arg1: Manifest[B]): Composite with CV2Shadow[A, B]

  11. def apply[A](a: A)(implicit arg0: Manifest[A]): Composite with CV1Shadow[A]

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

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

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  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 AnyRef

Inherited from Any

Ungrouped