I need to write millions of Java POJOs to disk, and read them from disk, and I need to do it fast.
I would prefer to avoid having to define a separate template file as I believe is required with Thrift and Google Protocol Buffers. Rather, it would be preferable if the Java class itself was the authoritative specification for the object (as with Java Serialization, Gson, and other serialization protocols). I realize that there may be a bit of a performance hit here, but its ok provided its not an order of magnitude slower.
The classes to be serialized consist of several simple long and String fields, and a single Map (where the values in this map are all either Numbers or Strings).
Can anyone suggest some libraries that I should look at for this?