Questions tagged [keyvaluepair]

Defines a key/value pair that can be set or retrieved.

Defines a key/value pair that can be set or retrieved. The most common key/value pair used is HTTP GET paramaters which take the form of:

key1=value1&key2=value2&key3=value3

This syntax makes this type of storage very open-ended as you continue to append the next key/value pair to the end of the string.


In the mscorlib library (from MSDN)

Namespace: System.Collections.Generic

Type Parameters

TKey

The type of the key.

TValue

The type of the value.

Read more and view examples at MSDN

440 questions
-1
votes
1 answer

DB record is created but array with key value pairs data does not get inserted - json php

The following json array data is fetched to a php script to ultimately create a record in a MySQL database: {"address": "4 Ficticious Ave", "city": "Miami", "country": "United States", "email": "jane_doe@gmail.com", "first_name": "Jane",…
Celia
  • 11
  • 3
-1
votes
5 answers

Return highest key value pair in-between certain number

I am using and image scanning API to look for specific images i.e. cat or dog this API tells you the probability of a result in your image. For example an image of a dog would return {u'dog': 0.99628395, u'cat': 0.87454434} I want my end result…
Joe Elia
  • 53
  • 7
-1
votes
2 answers

How does Local storage work on domain levels? Two sites using same key to store data?

I'm aware that local storage uses key value pairs to store data, but what if two websites use the same key to store data? how do they not overwrite one another when data has been inputted?
Damian_96
  • 1
  • 1
-1
votes
7 answers

How to create key value pair using two arrays in JavaScript?

I have two arrays, keys and commonkeys. I want to create a key-value pair using these two arrays and the output should be like langKeys. How to do that? This is array one: var keys=['en_US','es_ES', 'pt_PT','fr_FR','de_DE','ja_JP','it_IT'] This is…
user6747084
-1
votes
2 answers

Why aren't key value pairs produced when a list comprehension is used?

I have a dictionary and i'm trying to use a conditional on the key value pairs using list comprehension to filter the dict. The code doesn't throw an error, but the output is in the wrong format. The for loop works, but the list comprehension…
-1
votes
1 answer

How to Add, Update, Save and Delete Key List> in C#

Specific Problem I want to update KeyValue Pair, if I delete something , it should get deleted and remaining items gets saved, but when I delete a key, every value gets deleted. I just want to delete a specific value and retain the remaining values…
Patrick
  • 217
  • 1
  • 5
  • 19
-1
votes
1 answer

how to filter () a pairRDD according to two conditions

how can i filter my pair RDD if i have 2 conditions for filter it , one to test the key and the other one to test the value (wanna the portion of code) bcz i used this portion and it didnt work saddly JavaPairRDD filtering = pairRDD1.filter((x,y) ->…
hammadspark
  • 87
  • 1
  • 2
  • 13
-1
votes
5 answers

Get values of a HASHMAP

I'm trying to access to the values of a pair from a hashmap. I have got a Map where Integer is the key and info is the value. I want to iterate through the map and get the specific data field (namePlayer) from the info object. class info{ …
bb88
  • 1
  • 2
-1
votes
2 answers

Construct KeyValuePair with distinct Key and Concat Values if duplicate exist in the Key from a List

How to Construct List> with distinct Key and Concatenate Values if duplicate exist in the Key from a List? The Class Boss has the sub Class Collection Person for representing List of Employees under him/her. Create a List> with distinct Key (EmpID)…
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
-1
votes
1 answer

How to add a key value pair to an array of objects in javascript with multiple value?

I am able to have an object like this var obj = {key1: value1, key2: value2}; but i need an object having multiple value how can i achieve it? for example var obj = {key1:{ value1,value2}, key2: {value3,value4,value5}};
-1
votes
1 answer

Add Item to List>>

I'm creating the following List with a KeyValuePair which contains an object and another List: var testList = new List>> { new KeyValuePair
Philies
  • 233
  • 1
  • 4
  • 15
-1
votes
2 answers

Map key, value pair based on similarity of their value in Spark

I have been learning Spark for several weeks, currently I am trying to group several items or people based on their connection using Spark and Hadoop in Scala. For example, I want to see how football players are connected based on their club…
bonchenko
  • 567
  • 1
  • 9
  • 21
-1
votes
2 answers

How to override KeyValuePair in C#?

I want to override the default structure of KeyValuePair in C#, so that I can make a KeyValuePair to accept a 'var' types. Something like this : List> kvpList = new List>() { …
Koder101
  • 844
  • 15
  • 28
-1
votes
1 answer

Readonly in keyvaluepair

Well I have created a program that takes some files (Mp3) and change their tags recently I wanted to add some new Subs (like: Take the songs name and make every letter in it upercase). The problem is that i use a list with its items to be…
sheach
  • 65
  • 11
-1
votes
2 answers

How to properly display Key Value Pairs using AngularJS

How do I correctly display key value pairs using AngularJS? Here is my HTML:
  • {{key.key}}  {{value.value}}
Here is…
edallmighty
  • 9
  • 1
  • 2