public void OperateMapGetByList() { if (!args.ValidateMap()) { return; } Key key = new Key(args.ns, args.set, "opmkey11"); client.Delete(null, key); Dictionary <Value, Value> inputMap = new Dictionary <Value, Value>(); inputMap[Value.Get("Charlie")] = Value.Get(55); inputMap[Value.Get("Jim")] = Value.Get(98); inputMap[Value.Get("John")] = Value.Get(76); inputMap[Value.Get("Harry")] = Value.Get(82); // Write values to empty map. Record record = client.Operate(null, key, MapOperation.PutItems(MapPolicy.Default, binName, inputMap)); AssertRecordFound(key, record); List <string> keyList = new List <string>(); keyList.Add("Harry"); keyList.Add("Jim"); List <int> valueList = new List <int>(); valueList.Add(76); valueList.Add(50); record = client.Operate(null, key, MapOperation.GetByKeyList(binName, keyList, MapReturnType.KEY_VALUE), MapOperation.GetByValueList(binName, valueList, MapReturnType.KEY_VALUE) ); AssertRecordFound(key, record); IList results = record.GetList(binName); IList list = (IList)results[0]; Assert.AreEqual(2, list.Count); KeyValuePair <object, object> entry = (KeyValuePair <object, object>)list[0]; Assert.AreEqual("Harry", entry.Key); Assert.AreEqual(82L, entry.Value); entry = (KeyValuePair <object, object>)list[1]; Assert.AreEqual("Jim", entry.Key); Assert.AreEqual(98L, entry.Value); list = (IList)results[1]; Assert.AreEqual(1, list.Count); entry = (KeyValuePair <object, object>)list[0]; Assert.AreEqual("John", entry.Key); Assert.AreEqual(76L, entry.Value); }