com.outworkers.phantom.builder.primitives

Primitive

abstract class Primitive[RR] extends AnyRef

Annotations
@implicitNotFound( ... )
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Primitive
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Primitive()

Abstract Value Members

  1. abstract def asCql(value: RR): String

    Converts the type to a CQL compatible string.

    Converts the type to a CQL compatible string. The primitive is responsible for handling all aspects of adequate escaping as well. This is used to generate the final queries from domain objects.

    value

    The strongly typed value.

    returns

    The string representation of the value with respect to CQL standards.

  2. abstract def dataType: String

  3. abstract def deserialize(source: ByteBuffer, protocol: ProtocolVersion): RR

  4. abstract def serialize(obj: RR, protocol: ProtocolVersion): ByteBuffer

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def cassandraType: String

  8. def checkNullsAndLength[T](source: ByteBuffer, len: Int, msg: String)(pf: PartialFunction[ByteBuffer, T]): T

    Attributes
    protected[this]
  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 equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def fromRow(index: Int, row: Row): Try[RR]

  14. def fromRow(column: String, row: Row): Try[RR]

  15. def frozen: Boolean

    There are several kinds of primitives that must freeze in both scenarios: - Set columns - List columns - Map columns - Tuple columns - UDT columns

    There are several kinds of primitives that must freeze in both scenarios: - Set columns - List columns - Map columns - Tuple columns - UDT columns

    returns

    A boolean that marks if this should be frozen.

  16. final def getClass(): Class[_]

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

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

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

    Definition Classes
    AnyRef
  20. def notNull[T](value: T, msg: String = "Value cannot be null"): Unit

    Attributes
    protected[this]
  21. final def notify(): Unit

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

    Definition Classes
    AnyRef
  23. def nullCheck[T](column: String, row: Row)(fn: (Row) ⇒ T): Try[T]

    Attributes
    protected[this]
  24. def nullCheck[T](index: Int, row: Row)(fn: (Row) ⇒ T): Try[T]

    Attributes
    protected[this]
  25. def nullValueCheck(source: RR)(fn: (RR) ⇒ ByteBuffer): ByteBuffer

    Attributes
    protected[this]
  26. def shouldFreeze: Boolean

    Whether or not this primitive should freeze if used together with a primary column.

    Whether or not this primitive should freeze if used together with a primary column. or if used as part of a partition column.

    returns

    A Boolean marking whether or not this should freeze.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped