Object

org.coursera.naptime.courier

CourierFormats

Related Doc: package courier

Permalink

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
Visibility
  1. Public
  2. All

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. def arrayTemplateStringKeyFormat[T <: DataTemplate[DataList]](implicit tag: ClassTag[T]): StringKeyFormat[T]

    Permalink

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

  5. final def asInstanceOf[T0]: T0

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

    Permalink

    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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  17. val logger: Logger

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

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

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

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

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

    Permalink

    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]

    Permalink

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

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

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

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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped