Encoders Factory Object

Encoders is a factory object that…​FIXME

Creating Encoder Using Kryo — kryo Method

kryo[T: ClassTag]: Encoder[T]

kryo simply creates an encoder that serializes objects of type T using Kryo (i.e. the useKryo flag is enabled).

Note
kryo is used when…​FIXME

Creating Encoder Using Java Serialization — javaSerialization Method

javaSerialization[T: ClassTag]: Encoder[T]

javaSerialization simply creates an encoder that serializes objects of type T using the generic Java serialization (i.e. the useKryo flag is disabled).

Note
javaSerialization is used when…​FIXME

Creating Generic Encoder — genericSerializer Internal Method

genericSerializer[T: ClassTag](useKryo: Boolean): Encoder[T]

genericSerializer…​FIXME

Note
genericSerializer is used when Encoders is requested for a generic encoder using Kryo and Java Serialization.

results matching ""

    No results matching ""