Java:将大量数据序列化为单个文件 [英] Java: Serializing a huge amount of data to a single file

查看:145
本文介绍了Java:将大量数据序列化为单个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将大量数据(大约2gig)的小对象序列化到一个文件中,以便稍后由另一个Java进程处理。表现很重要。任何人都可以提出一个很好的方法来实现这个目标吗?

I need to serialize a huge amount of data (around 2gigs) of small objects into a single file in order to be processed later by another Java process. Performance is kind of important. Can anyone suggest a good method to achieve this?

推荐答案

你看过google的协议缓冲区?听起来像是一个用例。

Have you taken a look at google's protocol buffers? Sounds like a use case for it.

这篇关于Java:将大量数据序列化为单个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆