简单的基于动态JTree的S3存储桶/对象选择器示例 [英] Simple dynamic JTree-based S3 bucket/object chooser example

查看:68
本文介绍了简单的基于动态JTree的S3存储桶/对象选择器示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写自己的自定义实现之前,我一直在搜索一个简单的树状JTree/JDialog的完整示例,该示例使我可以动态加载和扩展S3存储桶或子对象的内容 -S3对象键.

Before writing my own custom implementation, I have been googling for a complete example of a simple tree-like JTree/JDialog that allows me to dynamically load and expand the contents of a S3 bucket or sub-S3-object-keys.

换句话说,我不想递归地预先从不同存储桶中预取所有对象并填充JTree .原因是太多的(子)对象和键无法获得流畅的UX体验,大约有数以百万计的对象散布在不同的S3存储桶中,而用户在会话期间无需打开它们

In other words, I don't want to recursively prefetch all the objects from different buckets beforehand and populate a JTree. The reason is that there are too many (sub-)objects and keys to have a smooth UX experience, in the order of millions/billions of objects spread in different S3 buckets that don't need to be opened by the user during a session.

简单地说,理想的解决方案就像是常规文件系统FileChooser,但适用于Amazon S3存储桶.有关更多上下文,请这是我最需要找到的东西.

Put simply, the ideal solution would be like a regular filesystem FileChooser but for Amazon S3 buckets. For more context, here is the closest I've got to finding what I need.

但是不幸的是,它没有实现扩展子树用例.另一方面,另一个SO示例非常匹配,但非常不完整 ...我怀疑应该有更好的摘要,也许这只是我的google-fu在这方面使我失败了?

But unfortunately it doesn't implement the on-expanding of subtrees usecase. On the other hand, this other SO example is a close match, but very incomplete... I suspect that better snippets should be available, perhaps it's just my google-fu failing me on this one?

我知道存储桶/密钥不是文件系统,但出于我的用例和目的,这就是我所需要的.

I am aware that buckets/keys are not filesystems, but for my usecase and purposes, that's what I need.

任何建议都非常欢迎!

推荐答案

好吧,我们设法解决了这个问题,有关更多指针,请参见以下github存储库,以获取不集成AWS S3存储桶的准系统示例:

Well, we managed to solve this problem, for more pointers see the following github repo for a barebones example not integrating AWS S3 buckets:

https://github.com/reisingerf/SwingDynamicTree

以及与S3浏览器的最终集成:

and the final integration with S3 browser:

https://github.com/igvteam/igv/pull/620

希望能帮助人们知道同样的事情:)

Hope that helps somebody wondering the same :)

这篇关于简单的基于动态JTree的S3存储桶/对象选择器示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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