Class

com.pagerduty.eris.mapper

EntityMapper

Related Doc: package mapper

Permalink

class EntityMapper[Id, Entity] extends AnyRef

Allows to read objects from Astyanax row results and write objects to Astyanax mutation batch.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EntityMapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EntityMapper(entityClass: Class[Entity], registeredSerializers: Map[Class[_], Serializer[_]], customMappers: Map[Class[_ <: Annotation], (Mapping) ⇒ Mapping] = Map.empty)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. lazy val columns: Set[ColumnModel]

    Permalink

    A set of column declarations that can be used to generate schema.

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getId(entity: Entity): Option[Id]

    Permalink

    Retrieves the value of @Id annotated field, if defined.

    Retrieves the value of @Id annotated field, if defined.

    entity

    the target entity

    returns

    id

  12. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  14. val mapping: EntityMapping[Id, Entity]

    Permalink

    Entity mapping that handles translation of individual fields.

    Entity mapping that handles translation of individual fields.

    Attributes
    protected
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def read(targetId: Id, result: ColumnList[String]): Option[Entity]

    Permalink

    Read entity from row result.

    Read entity from row result.

    targetId

    target entity id

    result

    row result

    returns

    Some(entity) if present, None otherwise

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

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. def ttlSeconds: Option[Int]

    Permalink

    The value of @Ttl annotation, if defined.

    The value of @Ttl annotation, if defined.

    returns

    TTL in seconds

  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def write(targetId: Id, entity: Entity, mutation: ColumnListMutation[String], ttlSeconds: Option[Int] = this.ttlSeconds): Unit

    Permalink

    Write entity columns into mutation batch.

    Write entity columns into mutation batch.

    targetId

    target entity id

    entity

    target entity

    mutation

    mutation batch

    ttlSeconds

    ttl in seconds, defaults to entity @Ttl

Inherited from AnyRef

Inherited from Any

Ungrouped