Questions tagged [key-value]

A key-value pair is a set of two linked data items: a key which uniquely identifies some item of data, and the value, which is either the data that is identified or a pointer to the location of that data. Key-value pairs are frequently used in lookup tables, hash tables and configuration files.

A key-value pair is a set of two linked data items: a key which uniquely identifies some item of data, and the value, which is either the data that is identified or a pointer to the location of that data. Key-value pairs are frequently used in lookup tables, hash tables and configuration files.

http://searchenterprisedesktop.techtarget.com/definition/key-value-pair

A collection of key-value pairs is called an associative array.

The concept of key value pairs is applied in modern NoSQL databases for representing a storage mechanism. Key-Value is also a way to assign attributes and values to NSObject based instances in Cocoa framework (Related: Objective-C).

3201 questions
0
votes
1 answer

Using node js and redis - get readable code

May be this is simple and stupid question, but im just learning my first asynchronous server language and redis is my first key-value db. Example. I need do this: $x = users:count get user:$x But with asynchronic javascript i get this…
Kein
  • 977
  • 2
  • 12
  • 32
0
votes
0 answers

How can I know which text document map to which ID

I am learning Mahout with 'Mahou in Action' and right now I am in chapter 8. I just downloaded the Reuters-21578 file and use the following commands to convert all the documents to SequenceFile: bin/mahout seqdirectory -c UTF-8 -i…
Evan_HZY
  • 984
  • 5
  • 17
  • 34
0
votes
4 answers

Python append to a value in dictionary

I have a following dictionary: d = {'key':{'key2':[]}} Is there any way to append to d['key']? I want to get: d = {'key':{'key2':[], 'key3':[]}} d['key'] = ['key3'] apparently does not produce the desired outcome.. I know I can do d = {'key':…
Stpn
  • 6,202
  • 7
  • 47
  • 94
0
votes
1 answer

Looking for an app that does iCloud key value pair syncing

I am looking for an app that does iCloud key value pair syncing? Can anyone tell me a free app on the app store that does that?
mosdev
  • 217
  • 2
  • 9
0
votes
2 answers

Passing Protocol buffer serialized datas from C++ to Python via LevelDB

Though I've followed the excellent Protocol Buffer documentation and tutorials for C++ and Python, I can't achieve my goal which is : - to serialize datas from a C++ process. - insert it into LevelDB from that same process. - extract…
Oleiade
  • 6,156
  • 4
  • 30
  • 42
0
votes
1 answer

R: split multiple value/key pairs in data.frame field

I've got a data.frame that contains a field like this: :6:Description_C :3:Description_A:2:Description_B:1:Description_C :2:Description_C:1:Description_B:1:Description_A:1:Description_D:1:Description_E :3:Description_B:3:Description_A The number in…
719016
  • 9,922
  • 20
  • 85
  • 158
0
votes
1 answer

Convert hash to NSNumberWithInt inconsistent?

I am storing an object's hash value as a unique identifier within that object like so: [myObj setValue:[NSNumber numberWithInt:[myObj hash]] forKey:@"ID"]; But when retrieving the value for that key, the value is no longer consistent with the hash,…
Thompson
  • 1,098
  • 11
  • 25
0
votes
1 answer

ViewState .Add(.... or ViewState["XXXXX"] is efficient ?

I have a reasonable dout, ViewState .Add(.... or ViewState["XXXXX"] is efficient ? Eg. 1). ViewState.Add("Example1", value ); 2). ViewState["Example1"]=value; Both gives the same output, 1st one add the Value to the NameValueCollection if that…
Sreekumar P
  • 5,900
  • 11
  • 57
  • 82
0
votes
3 answers

Looking for options other than MySQL

Previously I have set up a Django with MySQL attached for all of my projects. I am looking into trying something different for this next project though. What I need for it to do is for the client to be able to store a string, username, and…
Alexis
  • 23,545
  • 19
  • 104
  • 143
0
votes
1 answer

update values in a dictionary with new fields obtained from a wmi query vb.net

EDIT I still can't assign the process the username of the session id that is associated with it. This is the code i use to retrieve user details: Public Sub GetUsers() Using server As ITerminalServer = manager.GetRemoteServer(strHostName) …
A Smith
  • 251
  • 2
  • 4
  • 10
0
votes
1 answer

How to deserialzie List of KeyValuePair

My Class implements IXmlSerializable and has a property like this: public List> exportList { get { return _exportList; } set { _exportList = value; } } I have an XML Document and have to fill the…
Kingpin
  • 1,067
  • 2
  • 14
  • 34
0
votes
2 answers

How to read Json String which is coming in Key-Value format?

I am calling getTags web-method which returns hash-table in JSON format. following is return value which is formatted by jQuery.parseJSON(JSON.stringify(response)) and assigned to variable jsonObj I want read Key and Its value .How can I do…
Shailesh
  • 13
  • 7
0
votes
1 answer

Key/Value custom webPart property - Sharepoint 2010

Couldn't find any related resources I want to add a custom property to my visual webPart, the normal way of adding properties not working with type of Dictionary [Personalizable(), WebBrowsable(), WebDisplayName("News Sources"),…
Rami Alshareef
  • 7,015
  • 12
  • 47
  • 75
0
votes
3 answers

Check number of pairs in KeyValuePair list

I have this thing here var filelist = new List< KeyValuePair< string, string>>(); and I'd like to know if there's any command like filelist.Amount or something that checks the number of entries in the list.
user1071461
0
votes
3 answers

KeyValueStore Interface

Hi have the following interface: public interface KeyValueStore { public void put(String key, byte[] value); public byte[] get(String key); public void putAll(Map pairs); public Map
thathashd
  • 1,022
  • 4
  • 17
  • 49