A CompositePickler[A]
is used to pickle closed class hierarchies under a supertype A
,
where the subclasses' precise static types are lost.
A CompositeUnpickler[A]
is used to unpickle closed class hierarchies under a supertype A
,
where the subclasses' precise static types are lost.
A CompositeUnpickler[A]
is used to unpickle closed class hierarchies under a supertype A
,
where the subclasses' precise static types are lost.
Unpicklers for each concrete subclass B
must be registered with the composite using the concreteType[B]
method.
You should not need to implement this for the supported use cases: - Primitives and Strings - Case classes and case objects - Maps, Sets and Seqs - Class-hierarchies supported via composite picklers
Helper for registration of Pickler[B]/Unpickler[B] pairs via withSubtype[B]
You should not need to implement this for the supported use cases: - Primitives and Strings - Case classes and case objects - Maps, Sets and Seqs - Class-hierarchies supported via composite picklers
Use this object to invoke Pickling from user code
Do not import this companion object into scope in user code.
Use this object to invoke Unpickling from user code
Do not import this companion object into scope in user code.
A
CompositePickler[A]
is used to pickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.Picklers for each concrete subclass
B
must be registered with the composite using theconcreteType[B]
method.CompositePicklers use a more complex serialization format than regular picklers, storing the subclass name under key
CompositePickler.ClassKey
and the pickle body underCompositePickler.ValueKey
.