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
2 answers

Working directly on embedded documents in Mongodb

I am working with a complex mongodoc that has several embedded documents that represent items in an inventory. The whole document can be thought of as a complete inventory. The key 'sections' contains another key 'items' that contains the…
DeaconDesperado
  • 9,977
  • 9
  • 47
  • 77
0
votes
1 answer

iPhone - NSDictionary - NSMutableArray

I am grabbing a JSON output into a NSDictionary, the JSON output looks somewhat like this - {"1":[{"abc":11},{"abc":13}]} I was successful in grabbing they value for the first key 1 using the following: NSDictionary *getData = [JSONOutput…
subodhbahl
  • 415
  • 9
  • 22
0
votes
1 answer

How should I use key-value coding with the ID type?

How can I use key-value coding messages (setValue:ForKey: and so on) with id type? Key-value coding protocol is implemented as an informal protocol, so it is not included in protocol and I can't simply say id setValue:ForKey:.
Nik
  • 9,063
  • 7
  • 66
  • 81
0
votes
1 answer

Memcached/other key-value engine isolation

I have a bunch of web servers(frontends) behind balancer. Each apache process runs with it's own user for every virtualhost. Code that apache runs is PHP and it's not trusted code. I need to have shared (between web servers) session storage and…
Dmytro Leonenko
  • 1,443
  • 5
  • 19
  • 30
0
votes
1 answer

ASP.Net MVC Post: key-value pairs - can't retrieve value

I have a forms collection (fc) and I'm attempting to append to an email the values of the 'key' and the 'value'. I'm having no problem with the key (newKey), but I can't seem to code the 'value' properly. The 'for' loop checks to see if the key's…
Susan
  • 1,822
  • 8
  • 47
  • 69
0
votes
2 answers

In Perl, how can I read a file and save entire content of file in %hash in the form of key and values?

Hi i am new to Perl programming. I am trying to read a .csv file which has 2 fields separated by comma. I want to put all the data of a file into a hash in the form of key and its value. The input file I have is Data 2.8, gitu 2.5, Has 2.7 …
ssharma
  • 65
  • 2
  • 11
0
votes
2 answers

JSON Get Items by Value

What is the most efficient way to filter an JavaScript array of objects based on a key-value? For example: I'd like to select items by color in the following array: [{Id:1, color:"blue"},{Id:2, color:"green"},{Id:3, color:"blue"},{Id:4,…
Christophe
  • 27,383
  • 28
  • 97
  • 140
0
votes
1 answer

ASP.Net MVC Post returns key-value pairs-how do I reference them in code?

I have a collection of key-value pairs that are being returned by post to which I am adding to a list. I would like to append a value based upon the key. In the example below, the for loop appends the key and calls a function (Boolean) that…
Susan
  • 1,822
  • 8
  • 47
  • 69
0
votes
1 answer

Key-Value Database

I need to store short strings (50+ characters), and quickly look them up. At first I wanted to use SQLite for this. I created a single table with a single indexed TEXT column. Using all kinds of low-level tricks I could fill the database with 1…
Maestro
  • 9,046
  • 15
  • 83
  • 116
0
votes
1 answer

convert xml response (from ZohoCRM) to simple "key=value" pairs (for SurveyGizmo) using php or Zoho Creator

This deals with exchanging data between two web services. I'm stumped as to where to even start. Any assistance, pointers, or even complete solutions :) much appreciated. I'll describe in plain language... SurveyGizmo can post (insert) data to…
David
  • 25
  • 6
0
votes
2 answers

Data Driven Type Conversion?

I have a table in SQL Server of key-value pairs along with a field containing the T-SQL data type and other fields to indicate whether a particular field is mandatory, unique, etc. I have written a stored procedure to output a normalised table of…
Hopkins
  • 11
  • 1
0
votes
1 answer

Append to JSON_ARRAY in an existing JSON in ORACLE

I'm trying to combine arrays of JSON documents in Oracle 19c. I'd like to append items to an array in an already existing JSON stored in a table. I know this question has been asked in various forms before (with helper functions and SQL…
DBox
  • 49
  • 1
  • 7
0
votes
0 answers

Extract json records to rows in MySQL 5.7, like PostgreSQL json_each function

We have one business scenario: each id has sevaral codes, each code has "current, max, min" value. But each id's code are not same, so we use json to store them in PostgreSQL 12 {"code1":[cur,min,max], "code2":[cur,min,max],..." We want to extract…
yezhy
  • 1
0
votes
1 answer

Convert string to Key Value Pair

I'm receiving some data from a websocket which seems to be formatted as an Id with a Key Value Pair, which contains a string and some serialized JSON in the format: ID[type,json]. So for example: 42["login",{…
Cainnech
  • 439
  • 1
  • 5
  • 17
0
votes
0 answers

How to extract Nested Json Keys in Mariadb?

I have this json file { "data": { "Header": { "num": 1000095371, "name": "1000095371 LE" }, "character": { "b1234": { "ID": 1 }, "b1256": { "ID": 2 }, "b12389": { …
Bala
  • 1
  • 1