如何使用 JPA 存储天气数据

发布于 2024-08-23 07:01:21 字数 215 浏览 3 评论 0原文

该项目需要存储大量天气数据(http://www1.ncdc.noaa .gov/pub/data/igra/) 使用 JPA 写入文件系统。我的意思是磁盘文件。

如何存储这些数据。例如,如何组织文件?这样我们就可以检索这些文件进行检索。

The project is required to store large weather data (http://www1.ncdc.noaa.gov/pub/data/igra/)
into file system with JPA. I mean disk files.

How to store those data. For example, how to organize the files? So that we can retrieve those files for retrieving.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

童话 2024-08-30 07:01:21

我快速浏览了这些数据,以及对它们所包含内容的描述,如果您想从中提取信息,我认为将这些数据保留在磁盘文件中是不切实际的。您可能最好设计几个简单的数据库表来存储这些数据,并查询该数据库以获取用于计算的数据(也许使用 JPA)。

可以帮助您解析数据文件的库是 JFileHelpers,它可以使用固定宽度和分隔文件更容易。

希望这有助于您入门。

I had a quick look at the data, and the description of what they contain, I don't think it's practical to keep those data in disk files if you want to extract information from them. You'd probably be better off to design a couple of simple database tables in which to store these data, and query this database to get the data for your calculations, maybe with JPA.

A library that may help you to parse the data files is JFileHelpers, it makes working with fixed-width and delimited files a lot easier.

Hope this helps to get you started.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文