org.coursera.naptime.courier

CourierFormats

Related Doc: package courier

object CourierFormats extends StrictLogging

Provides utilities for converting between courier and Play JSON.

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

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def arrayTemplateStringKeyFormat[T <: DataTemplate[DataList]](implicit tag: ClassTag[T]): StringKeyFormat[T]

    Returns a string key format for a given Courier array type.

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def bigDecimalToNumber(value: BigDecimal): Number

    Convert a BigDecimal (used by Play JSON) to a Number (used by Pegasus).

    Convert a BigDecimal (used by Play JSON) to a Number (used by Pegasus).

    Attempts to convert using the same rules as Pegasus's JacksonDataCodec:

    https://github.com/linkedin/rest.li/blob/ master/data/src/main/java/com/linkedin/data/codec/JacksonDataCodec.java#L767

    In particular, decimal values that cannot be represented as Number (int, long, double, float) are considered invalid.

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def dataMapToObj(dataMap: DataMap): JsObject

  9. def enumerationFormat[T <: ScalaEnumTemplateSymbol](enumeration: ScalaEnumTemplate[T]): Format[T] { def writes(value: T): play.api.libs.json.JsString }

  10. def enumerationStringKeyFormat[T <: ScalaEnumTemplateSymbol](enumeration: ScalaEnumTemplate[T]): StringKeyFormat[T]

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

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

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

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

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

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

    Definition Classes
    Any
  17. val logger: Logger

    Attributes
    protected
    Definition Classes
    StrictLogging
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. def objToDataMap(obj: JsObject): DataMap

  22. def recordTemplateFormats[T <: RecordTemplate](implicit tag: ClassTag[T]): OFormat[T]

    WARN: this performs a full copy of data between Play JSON and Pegasus raw data types and is intended for temporary use only during the transition to Naptime v2.

    WARN: this performs a full copy of data between Play JSON and Pegasus raw data types and is intended for temporary use only during the transition to Naptime v2.

    Returns a formatter for the given Courier record type that converts it to and from Play JSON classes.

    Data is validated against it's Pegasus schema when read.

  23. def recordTemplateStringKeyFormat[T <: RecordTemplate](implicit tag: ClassTag[T]): StringKeyFormat[T]

    Returns a string key format for a given Courier record type.

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def unionTemplateFormats[T <: UnionTemplate](implicit tag: ClassTag[T]): OFormat[T]

    WARN: this performs a full copy of data between Play JSON and Pegasus raw data types and is intended for temporary use only during the transition to Naptime v2.

    WARN: this performs a full copy of data between Play JSON and Pegasus raw data types and is intended for temporary use only during the transition to Naptime v2.

    Returns a formatter for the given Courier record type that converts it to and from Play JSON classes.

    Data is validated against it's Pegasus schema when read.

  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped