阅读背景:

java / scala:只有基本类型的类型感知序列化更快?

来源:互联网 

in scala, i have a need to serialize objects that are limited to a small set of basic types: array, list, map, set, int, boolean, etc. i want to be able to serialize and deserialize those in a way that preserves the type information in the serialized format. specifically, if i have serialized an Array[Any], i want to be able to deserialize it and only specify that the resulting object is Array[Any]. that is, i don't want to specify a structure definition for every single thing i'm going to serialize. at the same time it needs to be able to distinguish between int and long, tuple and array, etc. in scala, i have a need to serialize objects th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: