fm.serializer
Members list
Packages
Type members
Classlikes
A Specialzed Option[Boolean] deserializer that uses the fm-common OptionCache via the Some.cached implicit
A Specialzed Option[Boolean] deserializer that uses the fm-common OptionCache via the Some.cached implicit
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
trait Primitive[Boolean]trait SimpleSerializer[Boolean]trait Deserializer[Boolean]trait NestedDeserializer[Boolean]trait RawDeserializer[Boolean]trait Serializer[Boolean]trait FieldSerializer[Boolean]trait NestedSerializer[Boolean]trait RawSerializer[Boolean]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Byte]trait SimpleSerializer[Byte]trait Deserializer[Byte]trait NestedDeserializer[Byte]trait RawDeserializer[Byte]trait Serializer[Byte]trait FieldSerializer[Byte]trait NestedSerializer[Byte]trait RawSerializer[Byte]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
class CollectionDeserializerBase[Col]trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
A Specialzed Option[Char] deserializer that uses the fm-common OptionCache via the Some.cached implicit
A Specialzed Option[Char] deserializer that uses the fm-common OptionCache via the Some.cached implicit
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
trait Primitive[Char]trait SimpleSerializer[Char]trait Deserializer[Char]trait NestedDeserializer[Char]trait RawDeserializer[Char]trait Serializer[Char]trait FieldSerializer[Char]trait NestedSerializer[Char]trait RawSerializer[Char]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Show all
For reading Collections
For reading Collections
Attributes
- Supertypes
- Known subtypes
-
trait Inputclass BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputShow all
These are implicit serializers/deserializers for common types that do not require the use of a macro to generate.
These are implicit serializers/deserializers for common types that do not require the use of a macro to generate.
Common types that DO require a macro are embedded into the makeSerializer/makeDeserializer via MacroHelpers.tryCommonType() since we can't call macros from here without creating a separate compilation package.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Deserializer.typeobject Serializer.type
Attributes
- Companion
- trait
- Supertypes
-
trait BsonImplicitstrait CommonTypeImplicitstrait PrimitiveImplicitsclass Objecttrait Matchableclass AnyShow all
- Self type
-
Deserializer.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object BooleanOptionDeserializer.typeobject CharOptionDeserializer.typeclass CollectionDeserializerBase[Col]class DeserializerProxy[T]object IntOptionDeserializer.typeobject LongOptionDeserializer.typetrait ObjectDeserializer[T]class SimpleObjectSerializer[T]class OptionDeserializer[A]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Deserializer.type
Attributes
- Supertypes
-
trait Deserializer[T]trait NestedDeserializer[T]trait RawDeserializer[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Double]trait SimpleSerializer[Double]trait Deserializer[Double]trait NestedDeserializer[Double]trait RawDeserializer[Double]trait Serializer[Double]trait FieldSerializer[Double]trait NestedSerializer[Double]trait RawSerializer[Double]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A ByteArrayOutputStream implementation optimized for writing binary serialized data (e.g. Protocol Buffers).
A ByteArrayOutputStream implementation optimized for writing binary serialized data (e.g. Protocol Buffers).
Tries to avoid excessive memory allocations and array resizing by using an Array of Byte Arrays to represent the data. Supports directly appending Byte Arrays (zero-copy), writing length prefixed data, optimized writing of ASCII and UTF-8 strings without going through a java.io.Writer.
Value parameters
- BufferSize
-
The size of each buffer
- CompactThresholdSize
-
If writing length prefixed data we have a gap then compact the array if the written data is less than this amount
- InitialArrayCapacity
-
The initial capacity of the internal arrays
- MinUsefulBufferSize
-
If we are splicing data keep using the existing buffer if there is at least this much space in it
- SpliceThresholdSize
-
If writing a Byte Array that is over this length then splice it in. If it's under this length then just write it to our buffers
Attributes
- Companion
- object
- Supertypes
-
trait Appendableclass OutputStreamtrait Flushabletrait Closeabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
FIELD Input
FIELD Input
This the extra methods for reading FIELD input along with the NestedInput methods
Attributes
- Supertypes
- Known subtypes
-
trait Inputclass BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
FIELD Output
FIELD Output
See the documentation for Output
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Outputclass BSONOutputclass JsonGeneratorOutputclass JSONOutputclass ProtobufOutputShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Serializer[T]trait ObjectSerializer[T]class SimpleObjectSerializer[T]class OptionSerializer[A]class SerializerProxy[T]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Supertypes
-
trait Primitive[Int]trait SimpleSerializer[Int]trait Deserializer[Int]trait NestedDeserializer[Int]trait RawDeserializer[Int]trait Serializer[Int]trait FieldSerializer[Int]trait NestedSerializer[Int]trait RawSerializer[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Long]trait SimpleSerializer[Long]trait Deserializer[Long]trait NestedDeserializer[Long]trait RawDeserializer[Long]trait Serializer[Long]trait FieldSerializer[Long]trait NestedSerializer[Long]trait RawSerializer[Long]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Float]trait SimpleSerializer[Float]trait Deserializer[Float]trait NestedDeserializer[Float]trait RawDeserializer[Float]trait Serializer[Float]trait FieldSerializer[Float]trait NestedSerializer[Float]trait RawSerializer[Float]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class CollectionDeserializerBase[Col]trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait SimpleSerializer[IP]trait Deserializer[IP]trait NestedDeserializer[IP]trait RawDeserializer[IP]trait Serializer[IP]trait FieldSerializer[IP]trait NestedSerializer[IP]trait RawSerializer[IP]class Objecttrait Matchableclass AnyShow all
A specialized implementation for deserializing ImmutableArrays.
A specialized implementation for deserializing ImmutableArrays.
Attributes
- Supertypes
-
class CollectionDeserializerBase[Col]trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Generic Input trait to be implemented by Serialization Implementations
Generic Input trait to be implemented by Serialization Implementations
See the docs for Output for the distinction between RAW, NESTED, and FIELD Input/Output. The only difference for Input is that there aren't readNestedXXX() methods. Instead the way fields for objects are read is:
- readFieldNumber(...) to get the name/number of the field
- readNestedXXX() to get the value of the field (based on looking up the proper type given the name/number)
Attributes
- Supertypes
-
trait RawInputtrait CollectionInputtrait FieldInputtrait NestedInputclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputShow all
A Specialzed Option[Int] deserializer that uses the fm-common OptionCache via the Some.cached implicit
A Specialzed Option[Int] deserializer that uses the fm-common OptionCache via the Some.cached implicit
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
trait Primitive[Int]trait SimpleSerializer[Int]trait Deserializer[Int]trait NestedDeserializer[Int]trait RawDeserializer[Int]trait Serializer[Int]trait FieldSerializer[Int]trait NestedSerializer[Int]trait RawSerializer[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[BigDecimal]trait SimpleSerializer[BigDecimal]trait Deserializer[BigDecimal]trait NestedDeserializer[BigDecimal]trait RawDeserializer[BigDecimal]trait Serializer[BigDecimal]trait FieldSerializer[BigDecimal]trait NestedSerializer[BigDecimal]trait RawSerializer[BigDecimal]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[BigInteger]trait SimpleSerializer[BigInteger]trait Deserializer[BigInteger]trait NestedDeserializer[BigInteger]trait RawDeserializer[BigInteger]trait Serializer[BigInteger]trait FieldSerializer[BigInteger]trait NestedSerializer[BigInteger]trait RawSerializer[BigInteger]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class CollectionDeserializerBase[Col]trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
A Serializer/FieldSerializer for a Java Iterable
A Serializer/FieldSerializer for a Java Iterable
Attributes
- Supertypes
-
trait Serializer[Col]trait FieldSerializer[Col]trait NestedSerializer[Col]trait RawSerializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
class OutputStreamtrait Flushabletrait Closeabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
A Specialzed Option[Long] deserializer that uses the fm-common OptionCache via the Some.cached implicit
A Specialzed Option[Long] deserializer that uses the fm-common OptionCache via the Some.cached implicit
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
trait Primitive[Long]trait SimpleSerializer[Long]trait Deserializer[Long]trait NestedDeserializer[Long]trait RawDeserializer[Long]trait Serializer[Long]trait FieldSerializer[Long]trait NestedSerializer[Long]trait RawSerializer[Long]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait SimpleSerializer[B]trait Deserializer[B]trait NestedDeserializer[B]trait RawDeserializer[B]trait Serializer[B]trait FieldSerializer[B]trait NestedSerializer[B]trait RawSerializer[B]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Deserializer[T]object BooleanOptionDeserializer.typeobject CharOptionDeserializer.typeclass CollectionDeserializerBase[Col]class DeserializerProxy[T]object IntOptionDeserializer.typeobject LongOptionDeserializer.typetrait ObjectDeserializer[T]class SimpleObjectSerializer[T]class OptionDeserializer[A]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
NESTED Input
NESTED Input
See documentation for Input/Output traits
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait CollectionInputtrait Inputclass BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputtrait FieldInputShow all
NESTED Output
NESTED Output
See the documentation for Output
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Outputclass BSONOutputclass JsonGeneratorOutputclass JSONOutputclass ProtobufOutputShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Serializer[T]trait ObjectSerializer[T]class SimpleObjectSerializer[T]class OptionSerializer[A]class SerializerProxy[T]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ObjectDeserializer.type
A combined Object Serializer/Deserializer that Serializes/Deserializes Objects from/to the same type
A combined Object Serializer/Deserializer that Serializes/Deserializes Objects from/to the same type
Attributes
- Companion
- object
- Supertypes
-
trait Deserializer[T]trait NestedDeserializer[T]trait RawDeserializer[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class SimpleObjectSerializer[T]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ObjectDeserializer.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ObjectSerializer.type
A combined Object Serializer/Deserializer that Serializes/Deserializes Objects from/to the same type
A combined Object Serializer/Deserializer that Serializes/Deserializes Objects from/to the same type
Attributes
- Companion
- object
- Supertypes
-
trait Serializer[T]trait FieldSerializer[T]trait NestedSerializer[T]trait RawSerializer[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class SimpleObjectSerializer[T]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ObjectSerializer.type
For deserializing Option types. Note: this does NOT allow Some(null)
For deserializing Option types. Note: this does NOT allow Some(null)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Generic Output trait to be implemented by Serialization Implementations
Generic Output trait to be implemented by Serialization Implementations
There are 3 classes of outputs:
- RAW
- NESTED
- FIELD
RAW Raw output is what you get if you serialize something by itself. Depending on the serialization implementation it will probably have an implicit length determined by the length of an Array[Byte], String, InputStream, etc. The starting point for serializing something it usually invoking one of the writeRawXXX(...) methods. The writeRawXXX(...) methods should be implemented by all serialization implementations.
NESTED Nested output is what we use when something is serialized as part of something else and may or may not be different than RAW output depending on the serialization implementation. For example, when serializing a collection each element would be serialized using the writeNestedXXX(...) methods. The nested format might have additional length information compared to the RAW format since there is no implicit length. For example, in protocol buffers a string/object/collection is prefixed with its length. Most serialization implementations can probably write optional length information followed by calling the corresponding writeRawXXX(...) method.
Another way to think about nested output is what we should be able to deserialize a NESTED value that is in the middle of an array of bytes (or a string or whatever). This means we need to know when to stop reading the value. For something like Protocol Buffers we will be prepending the length for string/object/repeated field or have a marker bit for varints to know when to stop. For something like JSON we will hit a double-quote (for strings) for a comma or closing brace (for all other types).
FIELD Field output is used when writing fields of an object. In addition to the value we are serializing it contains the name/number of the field in the object. Most implementations will probably write out the field name/number information followed by a call to the corresponding writeNestedXXX(...) method. Some implementations, such as Protocol Buffers, writes out the type of the field as part of the name/number which is why there isn't just a writeFieldName(...) which the framework would call automatically followed by the appropriate writeNestedXXX(...).
NOTE - Reading field output (via Input) is broken into a readFieldNumber() call to get the name/number of the field followed by calls to readNestedXXX().
Things are broken out this way to mainly support more complex formats (like Protocol Buffers). For something like a JSON implementation the RAW and NESTED formats will probably be the same. The way in which we write out JSON fields as part of an object will also be the same no matter what the type is unlike something like Protocol Buffers which needs to encode the type of field as part of the name/number of the field.
Attributes
- Supertypes
-
trait RawOutputtrait NestedOutputtrait FieldOutputclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
Attributes
- Companion
- object
- Supertypes
-
trait SimpleSerializer[T]trait Deserializer[T]trait NestedDeserializer[T]trait RawDeserializer[T]trait Serializer[T]trait FieldSerializer[T]trait NestedSerializer[T]trait RawSerializer[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
PrimitiveImplicits.type
These are the default implicits for primitives
These are the default implicits for primitives
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Deserializer.typeobject Primitive.typeobject PrimitiveImplicits.typeobject Serializer.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Deserializer[T]object BooleanOptionDeserializer.typeobject CharOptionDeserializer.typeclass CollectionDeserializerBase[Col]class DeserializerProxy[T]object IntOptionDeserializer.typeobject LongOptionDeserializer.typetrait ObjectDeserializer[T]class SimpleObjectSerializer[T]class OptionDeserializer[A]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
RAW Input
RAW Input
See documentation for Input/Output traits
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Inputclass BSONInputclass JsonParserInputclass JSONInputclass JSONByteArrayInputclass JSONCharSequenceInputclass JSONReaderInputclass ProtobufInputclass ProtobufByteArrayInputclass ProtobufByteBufferInputclass ProtobufInputStreamInputclass ValidationInputShow all
RAW Output
RAW Output
See the documentation for Output
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Outputclass BSONOutputclass JsonGeneratorOutputclass JSONOutputclass ProtobufOutputShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Serializer[T]trait ObjectSerializer[T]class SimpleObjectSerializer[T]class OptionSerializer[A]class SerializerProxy[T]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Primitive[BigDecimal]trait SimpleSerializer[BigDecimal]trait Deserializer[BigDecimal]trait NestedDeserializer[BigDecimal]trait RawDeserializer[BigDecimal]trait Serializer[BigDecimal]trait FieldSerializer[BigDecimal]trait NestedSerializer[BigDecimal]trait RawSerializer[BigDecimal]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[BigInt]trait SimpleSerializer[BigInt]trait Deserializer[BigInt]trait NestedDeserializer[BigInt]trait RawDeserializer[BigInt]trait Serializer[BigInt]trait FieldSerializer[BigInt]trait NestedSerializer[BigInt]trait RawSerializer[BigInt]class Objecttrait Matchableclass AnyShow all
Usage Pattern:
Usage Pattern:
import fm.serializer.{SerializableCompanion, SerializableInstance, SimpleSerializer}
object Foo extends SerializableCompanion[Foo] { protected val serializer: SimpleSerializer[Foo] = makeSerializer[Foo] }
final case class Foo(bar: String) extends SerializableInstance[Foo] { protected def companion: SerializableCompanion[Foo] = Foo }
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait SerializableCompanion[A]
Usage Pattern:
Usage Pattern:
import fm.serializer.{SerializableCompanion, SerializableInstance, SimpleSerializer}
object Foo extends SerializableCompanion[Foo] { protected val serializer: SimpleSerializer[Foo] = makeSerializer[Foo] }
final case class Foo(bar: String) extends SerializableInstance[Foo] { protected def companion: SerializableCompanion[Foo] = Foo }
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
A
Attributes
- Companion
- trait
- Supertypes
-
trait BsonImplicitstrait CommonTypeImplicitstrait PrimitiveImplicitsclass SerializerObjclass Objecttrait Matchableclass AnyShow all
- Self type
-
Serializer.type
Attributes
- Companion
- object
- Supertypes
-
trait FieldSerializer[T]trait NestedSerializer[T]trait RawSerializer[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ObjectSerializer[T]class SimpleObjectSerializer[T]class OptionSerializer[A]class SerializerProxy[T]trait SimpleSerializer[A]class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Serializer.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Serializer.type
Attributes
- Supertypes
-
trait Serializer[T]trait FieldSerializer[T]trait NestedSerializer[T]trait RawSerializer[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Short]trait SimpleSerializer[Short]trait Deserializer[Short]trait NestedDeserializer[Short]trait RawDeserializer[Short]trait Serializer[Short]trait FieldSerializer[Short]trait NestedSerializer[Short]trait RawSerializer[Short]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Int]trait SimpleSerializer[Int]trait Deserializer[Int]trait NestedDeserializer[Int]trait RawDeserializer[Int]trait Serializer[Int]trait FieldSerializer[Int]trait NestedSerializer[Int]trait RawSerializer[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Long]trait SimpleSerializer[Long]trait Deserializer[Long]trait NestedDeserializer[Long]trait RawDeserializer[Long]trait Serializer[Long]trait FieldSerializer[Long]trait NestedSerializer[Long]trait RawSerializer[Long]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SimpleSerializer[T]trait ObjectDeserializer[T]trait Deserializer[T]trait NestedDeserializer[T]trait RawDeserializer[T]trait ObjectSerializer[T]trait Serializer[T]trait FieldSerializer[T]trait NestedSerializer[T]trait RawSerializer[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object SimpleObjectSerializer.type
A combined Serializer/Deserializer that works on the same type
A combined Serializer/Deserializer that works on the same type
Attributes
- Supertypes
-
trait Deserializer[A]trait NestedDeserializer[A]trait RawDeserializer[A]trait Serializer[A]trait FieldSerializer[A]trait NestedSerializer[A]trait RawSerializer[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BsonSerializer[T]class DateSerializerclass ImmutableDateSerializerclass MaxKeySerializerclass MinKeySerializerclass ObjectIdSerializerclass UUIDSerializerclass IPSerializertrait Primitive[T]class BooleanPrimitiveclass ByteArrayPrimitiveclass BytePrimitiveclass CharPrimitiveclass DoublePrimitiveclass FixedIntPrimitiveclass FixedLongPrimitiveclass FloatPrimitiveclass IntPrimitiveclass JavaBigDecimalPrimitiveclass JavaBigIntegerPrimitiveclass LongPrimitiveclass ScalaBigDecimalPrimitiveclass ScalaBigIntPrimitiveclass ShortPrimitiveclass SignedIntPrimitiveclass SignedLongPrimitiveclass StringPrimitiveclass UnsignedIntPrimitiveclass UnsignedLongPrimitiveclass SimpleObjectSerializer[T]Show all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
A Serializer for a Map[String,V] (or rather TraversableOnce[(String,V)]) that allows us to output a JSON Object for a Map[String,V] instead of an Array[(String,V)]. If the underlying Output doesn't support this style (e.g. Protobuf) then the TraversableOnceSerializer is used instead.
A Serializer for a Map[String,V] (or rather TraversableOnce[(String,V)]) that allows us to output a JSON Object for a Map[String,V] instead of an Array[(String,V)]. If the underlying Output doesn't support this style (e.g. Protobuf) then the TraversableOnceSerializer is used instead.
Attributes
- Supertypes
-
trait Serializer[Col]trait FieldSerializer[Col]trait NestedSerializer[Col]trait RawSerializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[String]trait SimpleSerializer[String]trait Deserializer[String]trait NestedDeserializer[String]trait RawDeserializer[String]trait Serializer[String]trait FieldSerializer[String]trait NestedSerializer[String]trait RawSerializer[String]class Objecttrait Matchableclass AnyShow all
A Serializer for a TraversableOnce
A Serializer for a TraversableOnce
Attributes
- Supertypes
-
trait Serializer[Col]trait FieldSerializer[Col]trait NestedSerializer[Col]trait RawSerializer[Col]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Int]trait SimpleSerializer[Int]trait Deserializer[Int]trait NestedDeserializer[Int]trait RawDeserializer[Int]trait Serializer[Int]trait FieldSerializer[Int]trait NestedSerializer[Int]trait RawSerializer[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Primitive[Long]trait SimpleSerializer[Long]trait Deserializer[Long]trait NestedDeserializer[Long]trait RawDeserializer[Long]trait Serializer[Long]trait FieldSerializer[Long]trait NestedSerializer[Long]trait RawSerializer[Long]class Objecttrait Matchableclass AnyShow all
A specialized implementation for deserializing Vectors.
A specialized implementation for deserializing Vectors.
Attributes
- Supertypes
-
class CollectionDeserializerBase[Col]trait Deserializer[Col]trait NestedDeserializer[Col]trait RawDeserializer[Col]class Objecttrait Matchableclass AnyShow all
Experimental classlikes
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all