什么是用Java解析CSV文件的最快的开源库? [英] What is the fastest open source library to parse CSV file in Java?

查看:393
本文介绍了什么是用Java解析CSV文件的最快的开源库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我想阅读并处理包含数百万条记录的巨大CSV文件,我能找到的最快的库是单义的解析器的。这是我的逻辑:

1)用FTP协议读取CSV文件

2)用我自己的逻辑解析CSV文件,例如组合,重复删除等等。

3)将解析后的数据存储到MySQL数据库中。



目前我正在使用JavaCSV,但它对我的项目来说很慢。



您还有其他建议吗?

In my project, I would like to to read and process a huge CSV file with millions of records, and the fastest library I could find is uniVocity-parsers. Here is my logic:
1) Read the CSV file with FTP protocol
2) Parse the CSV file with my own logic, such as combination, duplicates deletion and so on.
3) Store the parsed data into the MySQL database.

Currently I'm using the JavaCSV, but it's slow for my project.

Do you have any other suggestion?

推荐答案

首先尝试使用Google,一个简单的搜索提供了许多可供选择的项目。
Try to use Google first, a simple search gives a lot of potential projects to choose from.


这篇关于什么是用Java解析CSV文件的最快的开源库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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