Distributed Key-Value Store
Distributed Key-Value Store
Functional requirements
Example:
Each attribute will have name, type associated (primitive types - boolean, double, integer, string)
& type has to be identified at run time.
● Get all keys (cities) where pollution_level is high, it will return delhi , jakarta
● Get all medicines by manufacturer (GSK) , it will return Crocin
Attribute
Notes
● Stub the methods for complex logic with comments supporting your
assumptions.
Case-1
Key:[ BBSR : {{ “temperature”:20.0} ,{ “latitude”:”20.5”} }] allowed
Key:[ bangalore : { “temperature”:true}] - not allowed should throws exception
Key:[ Chennai : {{ “temperature”:20.0} ,{ “latitude”:”30.5”} ,{“population”:1000000 } }] allowed
Key:[ Mombay : {{ “temperature”:20.0} ,{ “latitude”:”30.5”} ,{“population”:”1 million” } }] not
allowed
Case -2
Sec index- population
Make sec index as population_level
Query