简体   繁体   中英

How to create a voldemort store?

I am trying to understand the Voldemort java API. I am new to non relational databases, so as I understand, Voldemort's store can be compared to a table in relational model. I saw the following code in the documentation.

String bootstrapUrl = "tcp://localhost:6666";
StoreClientFactory factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl));

// create a client that executes operations on a single store
StoreClient client = factory.getStoreClient("test");

Here, we got a Store client based on the an existing store (test). How can I actually create a store for Voldemort through java?

From what I've read, you can't.

This is because a Store is defined in the stores.xml file for the Voldemort Server and it isn't modifiable through the Java API.

It isn't modifiable because the store creation looks to be done on startup.

You can browse the Code here: https://github.com/voldemort/voldemort

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM