In Progress

java key value store with extra functionality

We want a java class developed that is a (syncronizable) key-value store.

This shall be backed by a an in memory datastore (hashmap?, arraylist? ) of objects with the following properties

- key (string)

- value (string)

- sync_state (int)

- timestamp (TIMESTAMP (long?))

- is_deleted (boolean)

For this we want a 'class' that implements the following methods:

setItem(key, value)

- add or update the value identified by key.

- set sync_state=1

- new items get NULL or zero for timestamp,

removeItem(key)

- set is_deleted=true for item

- set sync_state=1

getItem(key)

- return value of item

- if item is_deleted this is the same as if the item doesn't exist

getItems()

- return array of key, value pairs

- if item is_deleted = 1 then do not include item

- return empty array if no items defined

In addition for synchronizing this key-value store we need:

getChanges

- return an object with

{

maxTimestamp: (the max value of all timestamps in the database)

items: [

{key: ..., value: ..., timestamp: ..., is_deleted: ... },

{key: ..., value: ..., timestamp: ..., is_deleted: ... },

{key: ..., value: ..., timestamp: ..., is_deleted: ... },

{key: ..., value: ..., timestamp: ..., is_deleted: ... },

... etc ...

]}

- items are all objects in the map with sync_state=1

updateChanges(arrayOfNewAndChangedItems)

- the argument arrayOfNewAndChangedItems is a list of

{key: ..., value: ..., timestamp: ..., is_deleted: ... }

- these should update existing items based on key or add new items. sync_state is set to 0.

Skills: Java

See more: java key value store, java syncronizable, key value extra, set pairs, map string int, map string, int map, implements set, get java, value, update store, timestamp, java database, boolean, need key, java etc, map array java, add key, java key value, string array, java string, memory database, database java, java add existing list, java key store

About the Employer:
( 30 reviews ) Bruvik, Norway

Project ID: #1271384

Awarded to:

LucMartin

Dear Sir, I think this must be done using a thread-safe HashMap as in-memory datastore. As a sample of what I can do for you, I have attached a .java class file already implementing getItem, setItem, removeItem and ge More

$60 USD in 1 day
(1 Review)
1.6

25 freelancers are bidding on average $84 for this job

IMSeriousBidder

Hello, Java expert here, please check your PM Thanks

$180 USD in 3 days
(77 Reviews)
7.0
eperfections

I can develop this helper class in Java. Please see details in PMB

$125 USD in 3 days
(289 Reviews)
6.8
olantran

let me help you this project.

$111 USD in 1 day
(44 Reviews)
6.2
jgqsyx

Hi I can do this for you as well. Pls see your PMB. Bruce

$150 USD in 3 days
(10 Reviews)
5.8
buzzcoder

Please check your pm,thanks.

$60 USD in 1 day
(48 Reviews)
5.7
poornachand

I have 4+ years in JAVA and ready to work on your project

$100 USD in 1 day
(32 Reviews)
5.3
csanuragjain

hi i can complete the task. Please give contact info

$80 USD in 7 days
(22 Reviews)
5.1
Creativitus

Greetings! I've read the requirements carefully and I can complete them in a day. Javadoc and comments are guaranteed. I'm available immediately.

$100 USD in 1 day
(1 Review)
4.0
talluriamara

I can do [url removed, login to view] consider me and please check your message.

$75 USD in 2 days
(3 Reviews)
4.0
siamsoft061

sir, i have great experience in java. I am expert in threading, IO, UI, applet... I am ready to work

$130 USD in 3 days
(3 Reviews)
2.9
softhub

Ready to start right now, Please see pmb.

$95 USD in 2 days
(2 Reviews)
2.3
Dominig

I can do this quickly and with high quality. If you overrated, contact me in Skype: dominic_091. Thank you.

$30 USD in 1 day
(1 Review)
1.6
richtiko

Hi see private M

$100 USD in 0 days
(0 Reviews)
0.0
hatem87

I am a computer engineer. Please check PM for more details.

$50 USD in 1 day
(0 Reviews)
0.0
stalker2011

I am 4+ years developer and can do it for you

$55 USD in 3 days
(0 Reviews)
0.0
javakeke

hi I am a [url removed, login to view] developer.

$100 USD in 2 days
(0 Reviews)
0.0
phanibits

Have been working in java from past 5 years. Please check my blog for more info. [url removed, login to view]

$40 USD in 2 days
(0 Reviews)
0.0
sencho

Hello, I can easily implement what You need. Please check PMB. Thanks

$50 USD in 3 days
(0 Reviews)
1.9
nhthai2207

Hi sir! Please let me perform this task for you!

$50 USD in 1 day
(0 Reviews)
0.0
paulmarkose

hai trust me, i can do this simple thing within 1 [url removed, login to view] ur PM.

$30 USD in 1 day
(0 Reviews)
0.0