Skip to content

Bucket.list()

Compare
Choose a tag to compare
@yegor256 yegor256 released this 06 Dec 11:42
· 618 commits to master since this release

This version introduced a new method list(String) in Bucket interface. It lists ockets in a bucket and returns their keys, which can be used in Bucket#get(String) later. For example:

Bucket bucket = region.bucket("my.example.com");
Collection<String> keys = bucket.list("test/");
String first = keys.iterator().next();
Ocket ocket = bucket.ocket(first);