PrimitiveCodec

wvlet.airframe.codec.PrimitiveCodec$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object AnyArrayCodec extends MessageCodec[Array[Any]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Any]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
class AnyCodec(codecFactory: MessageCodecFactory, knownSurfaces: Seq[Surface]) extends MessageCodec[Any]

Codec for Any values. This only supports very basic types to enable packing/unpacking collections like Seq[Any], Map[Any, Any] at ease.

Codec for Any values. This only supports very basic types to enable packing/unpacking collections like Seq[Any], Map[Any, Any] at ease.

Another option to implement AnyCodec is packing pairs of (type, value), but we will not take this approach as this will require many bytes to fully encode type names.

Attributes

Companion:
object
Graph
Supertypes
trait MessageCodec[Any]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
object AnyCodec

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object BigIntCodec extends PrimitiveCodec[BigInt]

Attributes

Graph
Supertypes
trait PrimitiveCodec[BigInt]
trait MessageCodec[BigInt]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object BigIntegerCodec extends PrimitiveCodec[BigInteger]

Attributes

Graph
Supertypes
trait PrimitiveCodec[BigInteger]
trait MessageCodec[BigInteger]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object BooleanArrayCodec extends MessageCodec[Array[Boolean]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Boolean]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object BooleanCodec extends PrimitiveCodec[Boolean]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Boolean]
trait MessageCodec[Boolean]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object ByteArrayCodec extends MessageCodec[Array[Byte]]

Attributes

Graph
Supertypes
trait MessageCodec[Array[Byte]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object ByteCodec extends PrimitiveCodec[Byte]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Byte]
trait MessageCodec[Byte]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object CharArrayCodec extends MessageCodec[Array[Char]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Char]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object CharCodec extends PrimitiveCodec[Char]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Char]
trait MessageCodec[Char]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object DoubleArrayCodec extends MessageCodec[Array[Double]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Double]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object DoubleCodec extends PrimitiveCodec[Double]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Double]
trait MessageCodec[Double]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object FloatArrayCodec extends MessageCodec[Array[Float]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Float]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object FloatCodec extends PrimitiveCodec[Float]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Float]
trait MessageCodec[Float]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object IntArrayCodec extends MessageCodec[Array[Int]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Int]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object IntCodec extends PrimitiveCodec[Int]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Int]
trait MessageCodec[Int]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object LongArrayCodec extends MessageCodec[Array[Long]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Long]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object LongCodec extends PrimitiveCodec[Long]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Long]
trait MessageCodec[Long]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnyArrayCodec.type
object BooleanArrayCodec.type
object CharArrayCodec.type
object DoubleArrayCodec.type
object FloatArrayCodec.type
object IntArrayCodec.type
object LongArrayCodec.type
object ShortArrayCodec.type
object StringArrayCodec.type
Self type
trait PrimitiveCodec[A] extends MessageCodec[A]

Attributes

Graph
Supertypes
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object BigIntCodec.type
object BigIntegerCodec.type
object BooleanCodec.type
object ByteCodec.type
object CharCodec.type
object DoubleCodec.type
object FloatCodec.type
object IntCodec.type
object LongCodec.type
object ShortCodec.type
object StringCodec.type
object UnitCodec.type
object RawMsgPackCodec extends MessageCodec[MsgPack]

Attributes

Graph
Supertypes
trait MessageCodec[MsgPack]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object ShortArrayCodec extends MessageCodec[Array[Short]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[Short]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object ShortCodec extends PrimitiveCodec[Short]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Short]
trait MessageCodec[Short]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object StringArrayCodec extends MessageCodec[Array[String]] with PrimitiveArrayCodec

Attributes

Graph
Supertypes
trait MessageCodec[Array[String]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object StringCodec extends PrimitiveCodec[String]

Attributes

Graph
Supertypes
trait PrimitiveCodec[String]
trait MessageCodec[String]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object UnitCodec extends PrimitiveCodec[Unit]

Attributes

Graph
Supertypes
trait PrimitiveCodec[Unit]
trait MessageCodec[Unit]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
object ValueCodec extends MessageCodec[Value]

MessagePack value codec

MessagePack value codec

Attributes

Graph
Supertypes
trait MessageCodec[Value]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type

Value members

Concrete fields

val primitiveArrayCodec: Map[Surface, MessageCodec[_ >: Array[Float] & Array[Double] & Array[Boolean] & Array[Short] & Array[Char] & Array[Int] & Array[Long] & Array[String] & Array[Byte] & Array[Any] <: Array[Float] | Array[Double] | Array[Boolean] | Array[Short] | Array[Char] | Array[Int] | Array[Long] | Array[String] | Array[Byte] | Array[Any]]]
val primitiveCodec: Map[Surface, MessageCodec[_]]