object CourierFormats extends StrictLogging
Provides utilities for converting between courier and Play JSON.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CourierFormats
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
arrayTemplateStringKeyFormat[T <: DataTemplate[DataList]](implicit tag: ClassTag[T]): StringKeyFormat[T]
Returns a string key format for a given Courier array type.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val codecAnnotation: String
- def dataMapToObj(dataMap: DataMap): JsObject
- def enumerationFormat[T <: ScalaEnumTemplateSymbol](enumeration: ScalaEnumTemplate[T]): Format[T]
- def enumerationStringKeyFormat[T <: ScalaEnumTemplateSymbol](enumeration: ScalaEnumTemplate[T]): StringKeyFormat[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jsObjectToRecord(jsObject: JsObject, recordSchema: RecordDataSchema): DataMap
- def jsObjectToTyperefUnion(typerefSchema: TyperefDataSchema, jsObject: JsObject, unionSchema: UnionDataSchema): DataMap
- def jsObjectToUnion(jsObject: JsObject, unionSchema: UnionDataSchema): DataMap
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def objToDataMap(obj: JsObject): DataMap
- val passthroughAnnotation: String
- def recordTemplateFormats[T <: RecordTemplate](implicit tag: ClassTag[T]): OFormat[T]
- def recordTemplateStringKeyFormat[T <: RecordTemplate](implicit tag: ClassTag[T]): StringKeyFormat[T]
- def recordToJsObject(dataMap: DataMap, recordSchema: RecordDataSchema): JsObject
- val stringKeyName: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def typerefUnionToJsObject(typerefSchema: TyperefDataSchema, dataMap: DataMap, unionSchema: UnionDataSchema): JsObject
- def unionTemplateFormats[T <: UnionTemplate](implicit tag: ClassTag[T]): OFormat[T]
- def unionToJsObject(dataMap: DataMap, unionSchema: UnionDataSchema): JsObject
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )