public GetKeyValueIterator ( |
||
ps | The parameters of iteration, as a |
|
Результат | ByteKeyValueIterator |
public void PrintByNick(string prefix) { foreach (KeyValuePair <string, string> kv in tableByNick.GetKeyValueIterator(new StringRangeParams().Prefix(prefix))) { System.Console.WriteLine(kv.Key + " => " + kv.Value); } }
public void PerformListTest(Table tbl, StringRangeParams ps, uint expected) { int cnt; cnt = 0; foreach (String key in tbl.GetKeyIterator(ps)) { //Console.WriteLine(key); cnt++; } Console.WriteLine("Expecting {0}, received {1}", expected, cnt); Assert.IsTrue(expected == cnt); cnt = 0; foreach (KeyValuePair<string, string> kv in tbl.GetKeyValueIterator(ps)) { cnt++; } Console.WriteLine("Expecting {0}, received {1}", expected, cnt); Assert.IsTrue(expected == cnt); }