Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 770 Bytes

chapter2_5_3.md

File metadata and controls

20 lines (14 loc) · 770 Bytes

Bucket Manager Factory

The factory classes have the duty to create the bucket manager.

BucketManagerFactory bucketManager= //instance
BucketManager bucket = bucketManager.getBucketManager("bucket");

Beyond the BucketManager, some databases have support for particular structure represented in the Java world such as List, Set, Queue e Map.

List<String> list = bucketManager.getList("list", String.class);
Set<String> set = bucketManager.getSet("set", String.class);
Queue<String> queue = bucketManager.getQueue("queue", String.class);
Map<String, String> map = bucketManager.getMap("map", String.class, String.class);

These methods may return an UnsupportedoperationException if the database does not support any of structures.