Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3490196
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:29:13+00:00 2026-05-18T11:29:13+00:00

I am trying to set up the configuration for Voldemort key-value store. Now, I’d

  • 0

I am trying to set up the configuration for Voldemort key-value store. Now, I’d like to be able to store arbitrary hashmaps in it, but I haven’t found the way to do so (or if it is possible).

According to the documentation I should use this syntax:

{"fname":"string", "lname":"string", "id":"int32", "emails":["string"]}

To indicate that I want to store a HashMap representation of a Java bean, but with constraints on allowed keys (only fname,lname,id and emails) and their types.

What I would need is to be able to store an arbitrary map like this:

{"name":"fred", "id":15}

or like this:

{"apples":"50$", "oranges":"15€"}

(Map values are meaningless, just an illustration of maps with different key names, and value types)

Is there a way to define a schema that would accept an arbitrary hashmap?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:29:13+00:00Added an answer on May 18, 2026 at 11:29 am

    What I have found useful is to just use generic raw storage (where byte[] is passed), and pre-serializing things on client side. This is trivial to use (I use Jackson):

      ObjectMapper mapper = new ObjectMapper();
      // to store:
      byte[] data = mapper.writeValueAsBytes(myMap);
      // and when retrieving back:
      Map<String,Object> data = mapper.readValue(data, Map.class);
    

    While Voldemort does support its “JSON-like” storage (it’s not JSON but simple binary dictionaries, as far as I know), there isn’t much benefit to using it in my opinion, since you can not query on it or request subsets of document.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set the OutputPath value to an absolute path: <OutputPath>c:\Projects\xxx\Deployment</OutputPath> But I
I'm trying to set up a Jenkins multi configuration job for the selenium tests
I'm trying to set up a Spring configuration with tutorials and some stuff. It
I'm trying to set up NHibernate in Mono, to store objects in SQLite. I've
Alright, I've trying to set up a TeamCity server the past few hours, but
I'm trying to talk to a USB device using libusb, but I feel like
I'm trying to set up a foreign key relationship with JPA annotations and generate
I am trying to set up a Teamcity build configuration that runs from our
I am trying to set up my TableView dynamically froma configuration file and have
I'm trying to set my own stopword list for MySQL (5.1.54) fulltext index, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.