github.com/cockroachdb/pebble@v1.1.2/testdata/merging_iter_seek (about)

     1  define
     2  a0.SET.0:0
     3  a1.SET.1:1
     4  a2.SET.2:2
     5  ----
     6  
     7  iter
     8  seek-ge a0
     9  next
    10  next
    11  next
    12  ----
    13  a0:0
    14  a1:1
    15  a2:2
    16  .
    17  
    18  iter
    19  seek-ge a1
    20  next
    21  next
    22  ----
    23  a1:1
    24  a2:2
    25  .
    26  
    27  iter
    28  seek-ge a2
    29  next
    30  ----
    31  a2:2
    32  .
    33  
    34  iter
    35  seek-ge a3
    36  ----
    37  .
    38  
    39  iter
    40  seek-lt a0
    41  ----
    42  .
    43  
    44  iter
    45  seek-lt a1
    46  prev
    47  ----
    48  a0:0
    49  .
    50  
    51  iter
    52  seek-lt a2
    53  prev
    54  prev
    55  ----
    56  a1:1
    57  a0:0
    58  .
    59  
    60  iter
    61  seek-lt a3
    62  prev
    63  prev
    64  prev
    65  ----
    66  a2:2
    67  a1:1
    68  a0:0
    69  .
    70  
    71  iter
    72  seek-prefix-ge a0
    73  next
    74  ----
    75  a0:0
    76  a1:1
    77  
    78  iter
    79  seek-prefix-ge a0
    80  prev
    81  ----
    82  a0:0
    83  err=pebble: unsupported reverse prefix iteration
    84  
    85  iter
    86  seek-prefix-ge a0
    87  first
    88  next
    89  next
    90  next
    91  ----
    92  a0:0
    93  a0:0
    94  a1:1
    95  a2:2
    96  .
    97  
    98  iter
    99  seek-prefix-ge a0
   100  last
   101  next
   102  ----
   103  a0:0
   104  a2:2
   105  .
   106  
   107  iter
   108  seek-prefix-ge a0
   109  seek-ge a0
   110  next
   111  next
   112  next
   113  ----
   114  a0:0
   115  a0:0
   116  a1:1
   117  a2:2
   118  .
   119  
   120  iter
   121  seek-prefix-ge a0
   122  seek-lt a2
   123  next
   124  next
   125  ----
   126  a0:0
   127  a1:1
   128  a2:2
   129  .
   130  
   131  iter
   132  seek-prefix-ge a1
   133  last
   134  prev
   135  prev
   136  prev
   137  ----
   138  a1:1
   139  a2:2
   140  a1:1
   141  a0:0
   142  .
   143  
   144  iter
   145  seek-prefix-ge a1
   146  first
   147  prev
   148  ----
   149  a1:1
   150  a0:0
   151  .
   152  
   153  define
   154  a0.SET.0:0 b3.SET.3:3
   155  a1.SET.1:1
   156  a2.SET.2:2
   157  ----
   158  
   159  iter
   160  seek-ge a2
   161  next
   162  next
   163  ----
   164  a2:2
   165  b3:3
   166  .
   167  
   168  iter
   169  seek-lt a2
   170  prev
   171  prev
   172  ----
   173  a1:1
   174  a0:0
   175  .
   176  
   177  define
   178  a.SET.0:0 b.SET.3:3
   179  aa.SET.1:1
   180  aaa.SET.2:2
   181  ----
   182  
   183  iter
   184  seek-prefix-ge a
   185  next
   186  seek-prefix-ge aaa
   187  next
   188  ----
   189  a:0
   190  aa:1
   191  aaa:2
   192  b:3
   193  
   194  iter
   195  seek-prefix-ge aa
   196  prev
   197  ----
   198  aa:1
   199  err=pebble: unsupported reverse prefix iteration
   200  
   201  iter
   202  seek-prefix-ge aa
   203  next
   204  prev
   205  ----
   206  aa:1
   207  aaa:2
   208  err=pebble: unsupported reverse prefix iteration
   209  
   210  iter
   211  seek-prefix-ge aa
   212  next
   213  prev
   214  ----
   215  aa:1
   216  aaa:2
   217  err=pebble: unsupported reverse prefix iteration
   218  
   219  iter
   220  seek-prefix-ge aaa
   221  next
   222  ----
   223  aaa:2
   224  b:3
   225  
   226  iter
   227  seek-prefix-ge aaa
   228  prev
   229  ----
   230  aaa:2
   231  err=pebble: unsupported reverse prefix iteration
   232  
   233  iter
   234  seek-prefix-ge b
   235  prev
   236  ----
   237  b:3
   238  err=pebble: unsupported reverse prefix iteration
   239  
   240  iter
   241  seek-prefix-ge b
   242  next
   243  ----
   244  b:3
   245  .
   246  
   247  iter
   248  seek-prefix-ge aa
   249  last
   250  prev
   251  prev
   252  prev
   253  prev
   254  ----
   255  aa:1
   256  b:3
   257  aaa:2
   258  aa:1
   259  a:0
   260  .
   261  
   262  iter
   263  seek-prefix-ge aa
   264  first
   265  next
   266  next
   267  next
   268  next
   269  ----
   270  aa:1
   271  a:0
   272  aa:1
   273  aaa:2
   274  b:3
   275  .
   276  
   277  iter
   278  seek-prefix-ge aa
   279  seek-ge a
   280  next
   281  next
   282  next
   283  next
   284  ----
   285  aa:1
   286  a:0
   287  aa:1
   288  aaa:2
   289  b:3
   290  .
   291  
   292  iter
   293  seek-prefix-ge aa
   294  seek-lt aaa
   295  next
   296  next
   297  next
   298  ----
   299  aa:1
   300  aa:1
   301  aaa:2
   302  b:3
   303  .