StartKey() public method

Specify the start key parameter for iteration.
Iteration will start at start key, or the first key greater than start key.
public StartKey ( string startKey ) : StringRangeParams
startKey string The start key parameter as a string.
return StringRangeParams
コード例 #1
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        public void ListTest3(Table tbl, uint num)
        {
            uint count = 100;

            StringRangeParams ps = new StringRangeParams();
            ps.StartKey(Utils.Id(100));
            ps.Count(count);
            ps.Backward();

            uint expected = count;
            PerformListTest(tbl, ps, expected);
        }
コード例 #2
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        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);
            }
        }
コード例 #3
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        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);
            }
        }
コード例 #4
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        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);
        }
コード例 #5
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        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);
        }
コード例 #6
0
ファイル: SimpleUnitTests.cs プロジェクト: scalien/scaliendb
        public void ListTest19(Table tbl, uint num)
        {
            StringRangeParams ps = new StringRangeParams();
            ps.StartKey(Utils.Id(12000));
            ps.Prefix("0000000013");
            ps.Backward();

            uint expected = 0;
            PerformListTest(tbl, ps, expected);
        }