github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/level_iter (about)

     1  define
     2  a.SET.1:1 b.SET.2:2
     3  c.SET.3:3 d.SET.4:4
     4  dd.SET.5:5
     5  ----
     6  
     7  iter
     8  seek-ge a
     9  next
    10  next
    11  next
    12  next
    13  next
    14  ----
    15  a:1
    16  b:2
    17  c:3
    18  d:4
    19  dd:5
    20  .
    21  
    22  iter
    23  seek-ge b
    24  next
    25  next
    26  next
    27  next
    28  ----
    29  b:2
    30  c:3
    31  d:4
    32  dd:5
    33  .
    34  
    35  iter
    36  seek-ge c
    37  next
    38  next
    39  next
    40  ----
    41  c:3
    42  d:4
    43  dd:5
    44  .
    45  
    46  iter
    47  seek-ge d
    48  next
    49  next
    50  ----
    51  d:4
    52  dd:5
    53  .
    54  
    55  iter
    56  seek-ge dd
    57  next
    58  ----
    59  dd:5
    60  .
    61  
    62  iter
    63  seek-ge e
    64  ----
    65  .
    66  
    67  iter
    68  seek-lt a
    69  ----
    70  .
    71  
    72  iter
    73  seek-lt b
    74  prev
    75  ----
    76  a:1
    77  .
    78  
    79  iter
    80  seek-lt c
    81  prev
    82  prev
    83  ----
    84  b:2
    85  a:1
    86  .
    87  
    88  iter
    89  seek-lt d
    90  prev
    91  prev
    92  prev
    93  ----
    94  c:3
    95  b:2
    96  a:1
    97  .
    98  
    99  iter
   100  seek-lt e
   101  prev
   102  prev
   103  prev
   104  prev
   105  prev
   106  ----
   107  dd:5
   108  d:4
   109  c:3
   110  b:2
   111  a:1
   112  .
   113  
   114  iter
   115  seek-prefix-ge a
   116  next
   117  ----
   118  a:1
   119  .
   120  
   121  iter
   122  seek-prefix-ge d
   123  next
   124  next
   125  ----
   126  d:4
   127  dd:5
   128  .
   129  
   130  iter
   131  seek-prefix-ge dd
   132  next
   133  ----
   134  dd:5
   135  .
   136  
   137  iter
   138  seek-prefix-ge d
   139  next
   140  prev
   141  prev
   142  ----
   143  d:4
   144  dd:5
   145  d:4
   146  .
   147  
   148  iter
   149  seek-prefix-ge d
   150  prev
   151  ----
   152  d:4
   153  .
   154  
   155  iter
   156  seek-prefix-ge dd
   157  prev
   158  ----
   159  dd:5
   160  .
   161  
   162  iter lower=a
   163  seek-ge a
   164  first
   165  ----
   166  a:1
   167  a:1
   168  
   169  iter
   170  set-bounds lower=a
   171  seek-ge a
   172  first
   173  ----
   174  a:1
   175  a:1
   176  
   177  # levelIter trims lower/upper bound in the options passed to sstables.
   178  load a
   179  ----
   180  [,]
   181  
   182  load a lower=a upper=b
   183  ----
   184  [a,b]
   185  
   186  load a lower=a upper=c
   187  ----
   188  [a,]
   189  
   190  load c lower=b upper=d
   191  ----
   192  [,d]
   193  
   194  load c lower=b upper=e
   195  ----
   196  [,]
   197  
   198  # levelIter only checks lower bound when loading sstables.
   199  iter lower=b
   200  seek-ge a
   201  first
   202  ----
   203  a:1
   204  a:1
   205  
   206  iter lower=c
   207  seek-ge a
   208  first
   209  ----
   210  c:3
   211  c:3
   212  
   213  iter
   214  set-bounds lower=b
   215  seek-ge a
   216  first
   217  ----
   218  a:1
   219  a:1
   220  
   221  iter
   222  set-bounds lower=c
   223  seek-ge a
   224  first
   225  ----
   226  c:3
   227  c:3
   228  
   229  # levelIter only checks lower bound when loading sstables.
   230  iter lower=d
   231  seek-ge a
   232  first
   233  ----
   234  c:3
   235  c:3
   236  
   237  iter lower=e
   238  seek-ge a
   239  first
   240  ----
   241  .
   242  .
   243  
   244  iter upper=e
   245  seek-lt e
   246  last
   247  ----
   248  dd:5
   249  dd:5
   250  
   251  iter
   252  set-bounds lower=d
   253  seek-ge a
   254  first
   255  ----
   256  c:3
   257  c:3
   258  
   259  iter
   260  set-bounds lower=e
   261  seek-ge a
   262  first
   263  ----
   264  .
   265  .
   266  
   267  iter
   268  set-bounds upper=e
   269  seek-lt e
   270  last
   271  ----
   272  dd:5
   273  dd:5
   274  
   275  # levelIter only checks upper bound when loading sstables.
   276  iter upper=d
   277  seek-lt e
   278  last
   279  ----
   280  d:4
   281  d:4
   282  
   283  iter upper=c
   284  seek-lt e
   285  last
   286  ----
   287  b:2
   288  b:2
   289  
   290  iter
   291  set-bounds upper=d
   292  seek-lt e
   293  last
   294  ----
   295  d:4
   296  d:4
   297  
   298  iter
   299  set-bounds upper=c
   300  seek-lt e
   301  last
   302  ----
   303  b:2
   304  b:2
   305  
   306  # levelIter only checks lower bound when loading sstables.
   307  iter upper=b
   308  seek-lt e
   309  last
   310  ----
   311  b:2
   312  b:2
   313  
   314  iter upper=a
   315  seek-lt e
   316  last
   317  ----
   318  .
   319  .
   320  
   321  iter upper=dd
   322  seek-prefix-ge d
   323  next
   324  ----
   325  d:4
   326  .
   327  
   328  iter
   329  set-bounds upper=b
   330  seek-lt e
   331  last
   332  ----
   333  b:2
   334  b:2
   335  
   336  iter
   337  set-bounds upper=a
   338  seek-lt e
   339  last
   340  ----
   341  .
   342  .
   343  
   344  iter
   345  set-bounds upper=dd
   346  seek-prefix-ge d
   347  next
   348  ----
   349  d:4
   350  .
   351  
   352  iter upper=e
   353  seek-prefix-ge d
   354  next
   355  next
   356  ----
   357  d:4
   358  dd:5
   359  .
   360  
   361  iter lower=dd
   362  seek-prefix-ge d
   363  next
   364  ----
   365  dd:5
   366  .
   367  
   368  iter lower=d
   369  seek-prefix-ge dd
   370  prev
   371  ----
   372  dd:5
   373  .
   374  
   375  iter lower=c
   376  seek-prefix-ge dd
   377  prev
   378  ----
   379  dd:5
   380  .
   381  
   382  iter lower=c
   383  seek-lt c
   384  ----
   385  .
   386  
   387  iter
   388  seek-lt c
   389  set-bounds lower=c
   390  seek-lt c
   391  ----
   392  b:2
   393  .
   394  
   395  iter upper=c
   396  seek-ge c
   397  ----
   398  .
   399  
   400  iter
   401  seek-ge c
   402  set-bounds upper=c
   403  seek-ge c
   404  ----
   405  c:3
   406  .