JFreeChart 和延迟加载
JFreeChart & Lazy loading
我正在尝试为我的应用添加新功能。我面对的事实是,我的应用程序应该处理大数据(超过 1000 条条目)。另外,我想提一下,该数据(数据集 - 随心所欲地称呼它)是由 Hibernate 从 DB 中获取的。我希望我可以 post 一些代码我如何准确地检索数据并将其添加到数据集,但这是严格禁止的。
有什么制作方法吗
注意:Window 图表如下所示:
https://classic.moqups.com/AU/SmmGSpPE/p:a16b2c2a4
当 window 打开时 - 所有数据集都已加载,但只有一个 window 显示图表。要查看更多信息,用户必须单击
“<<<”或“>>>”
按钮。这将导致 'reloading data from DB' (实际上不是)。它只显示第一个 "step" 和 e.t.c
之后的内容
我尽量解释清楚了。
感谢提示和建议
How to correctly bind to my Service
?
我不熟悉Hibernate,但是你可以查询一个JPA实体,如图here, but do so in the doInBackground()
implementation of a SwingWorker
, as shown here. Update the chart's dataset in your implementation of process()
, as shown here. The listening chart will update itself in response. You can page through the dataset using an approach such the one shown here。
我正在尝试为我的应用添加新功能。我面对的事实是,我的应用程序应该处理大数据(超过 1000 条条目)。另外,我想提一下,该数据(数据集 - 随心所欲地称呼它)是由 Hibernate 从 DB 中获取的。我希望我可以 post 一些代码我如何准确地检索数据并将其添加到数据集,但这是严格禁止的。
有什么制作方法吗
注意:Window 图表如下所示: https://classic.moqups.com/AU/SmmGSpPE/p:a16b2c2a4 当 window 打开时 - 所有数据集都已加载,但只有一个 window 显示图表。要查看更多信息,用户必须单击
“<<<”或“>>>”
按钮。这将导致 'reloading data from DB' (实际上不是)。它只显示第一个 "step" 和 e.t.c
之后的内容我尽量解释清楚了。
感谢提示和建议
How to correctly bind to my
Service
?
我不熟悉Hibernate,但是你可以查询一个JPA实体,如图here, but do so in the doInBackground()
implementation of a SwingWorker
, as shown here. Update the chart's dataset in your implementation of process()
, as shown here. The listening chart will update itself in response. You can page through the dataset using an approach such the one shown here。