MapCodecBase

wvlet.airframe.codec.CollectionCodec.MapCodecBase
abstract class MapCodecBase[A, B, MapType[A, B]](keyCodec: MessageCodec[A], valueCodec: MessageCodec[B]) extends MessageCodec[MapType[A, B]]

Attributes

Graph
Supertypes
trait MessageCodec[MapType[A, B]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class JavaMapCodec[A, B]
class ListMapCodec[A, B]
class MapCodec[A, B]

Members list

Value members

Abstract methods

protected def castResult(v: Any): MapType[A, B]
protected def newMapBuilder: Builder[(Any, Any), Map[Any, Any]]

Concrete methods

protected def packMap(p: Packer, m: Map[A, B]): Unit
protected def unpackMap(u: Unpacker, v: MessageContext): Unit

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def fromJson(json: Array[Byte]): MapType[A, B]

Attributes

Inherited from:
MessageCodec
def fromJson(json: String): MapType[A, B]

Attributes

Inherited from:
MessageCodec
def fromMap(m: Map[String, Any]): MapType[A, B]

Attributes

Inherited from:
MessageCodec
def fromMsgPack(msgpack: Array[Byte]): MapType[A, B]

Attributes

Inherited from:
MessageCodec
def fromString(s: String): MapType[A, B]

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

A shortcut for fromMsgPack(StringCodec.toMsgPack(s))

Attributes

Inherited from:
MessageCodec
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def pack(p: Packer, v: MapType[A, B]): Unit

Attributes

Inherited from:
MessageCodec
def pack(v: MapType[A, B]): MsgPack

Converting the object into MessagePack (= Array[Byte])

Converting the object into MessagePack (= Array[Byte])

Attributes

Inherited from:
MessageCodec
def toJSONObject(v: MapType[A, B]): JSONObject

Attributes

Inherited from:
MessageCodec
def toJson(v: MapType[A, B]): String

Attributes

Inherited from:
MessageCodec
def toMsgPack(v: MapType[A, B]): Array[Byte]

Attributes

Inherited from:
MessageCodec
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def unpack(u: Unpacker, v: MessageContext): Unit

Attributes

Inherited from:
MessageCodec
def unpack(msgpack: MsgPack): MapType[A, B]

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException

Attributes

Inherited from:
MessageCodec
def unpackBytes(msgpack: Array[Byte], offset: Int, len: Int): Option[MapType[A, B]]

Attributes

Inherited from:
MessageCodec
def unpackBytes(msgpack: Array[Byte]): Option[MapType[A, B]]

Attributes

Inherited from:
MessageCodec
def unpackJson(json: String): Option[MapType[A, B]]

Attributes

Inherited from:
MessageCodec
def unpackMsgPack(msgpack: Array[Byte], offset: Int, len: Int): Option[MapType[A, B]]

Attributes

Inherited from:
MessageCodec
def unpackMsgPack(msgpack: Array[Byte]): Option[MapType[A, B]]

Attributes

Inherited from:
MessageCodec
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods