你如何搜索亚马逊 s3 存储桶? [英] How do you search an amazon s3 bucket?

查看:40
本文介绍了你如何搜索亚马逊 s3 存储桶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含数千个文件的存储桶.如何搜索存储桶?有什么工具可以推荐吗?

I have a bucket with thousands of files in it. How can I search the bucket? Is there a tool you can recommend?

推荐答案

S3 没有原生的search this bucket",因为实际内容是未知的——而且,因为 S3 是基于键/值的,所以没有原生的方式一次访问多个节点,更传统的数据存储提供 (SELECT * FROM ... WHERE ...)(在 SQL 模型中).

S3 doesn't have a native "search this bucket" since the actual content is unknown - also, since S3 is key/value based there is no native way to access many nodes at once ala more traditional datastores that offer a (SELECT * FROM ... WHERE ...) (in a SQL model).

您需要做的是执行 ListBucket 以获取存储桶中的对象列表,然后迭代执行您实现的自定义操作的每个项目 - 这就是您的搜索.

What you will need to do is perform ListBucket to get a listing of objects in the bucket and then iterate over every item performing a custom operation that you implement - which is your searching.

这篇关于你如何搜索亚马逊 s3 存储桶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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