public EndKey ( string endKey ) : |
||
endKey | string | The end key parameter as a string. |
Результат |
public void ListTest9(Table tbl, uint num) { StringRangeParams ps = new StringRangeParams(); ps.EndKey(Utils.Id(15000)); ps.Backward(); uint expected = num - 15000 - 1; PerformListTest(tbl, ps, expected); }
public void ListTest27(Table tbl, uint num) { for (uint i = num; i > 0; i -= 1000) { StringRangeParams ps = new StringRangeParams(); ps.StartKey(Utils.Id(i)); ps.EndKey(Utils.Id(i - 1000)); ps.Backward(); uint expected; if (i == 22000) expected = 999; else expected = 1000; PerformListTest(tbl, ps, expected); } }
public void ListTest26(Table tbl, uint num) { for (uint i = 0; i < num; i += 1000) { StringRangeParams ps = new StringRangeParams(); ps.StartKey(Utils.Id(i)); ps.EndKey(Utils.Id(i + 1000)); uint expected = 1000; PerformListTest(tbl, ps, expected); } }
public void ListTest25(Table tbl, uint num) { StringRangeParams ps = new StringRangeParams(); ps.StartKey(Utils.Id(22000)); ps.EndKey(Utils.Id(18000)); ps.Backward(); uint expected = 3999; PerformListTest(tbl, ps, expected); }
public void ListTest22(Table tbl, uint num) { StringRangeParams ps = new StringRangeParams(); ps.StartKey(Utils.Id(10000)); ps.EndKey(Utils.Id(13000)); uint expected = 3000; PerformListTest(tbl, ps, expected); }
public void ListTest13(Table tbl, uint num) { StringRangeParams ps = new StringRangeParams(); ps.StartKey(Utils.Id(15000)); ps.EndKey(Utils.Id(10000)); ps.Prefix("00000000120"); ps.Backward(); uint expected = 100; PerformListTest(tbl, ps, expected); }