github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/testdata/iterator_table_filter (about)

     1  define
     2  L0
     3    a.SET.4:4
     4  L1
     5    a.SET.3:3
     6  L2
     7    a.SET.2:2
     8  L3
     9    a.SET.1:1
    10  ----
    11  0.0:
    12    000004:[a#4,SET-a#4,SET]
    13  1:
    14    000005:[a#3,SET-a#3,SET]
    15  2:
    16    000006:[a#2,SET-a#2,SET]
    17  3:
    18    000007:[a#1,SET-a#1,SET]
    19  
    20  iter
    21  first
    22  ----
    23  a: (4, .)
    24  
    25  # Only scan tables with min-seq-num < filter.
    26  
    27  iter filter=5
    28  first
    29  ----
    30  a: (4, .)
    31  
    32  iter filter=4
    33  first
    34  ----
    35  a: (3, .)
    36  
    37  iter filter=3
    38  first
    39  ----
    40  a: (2, .)
    41  
    42  iter filter=2
    43  first
    44  ----
    45  a: (1, .)
    46  
    47  iter filter=1
    48  first
    49  ----
    50  .
    51  
    52  # Set-options that reuses the filter should still see the filter apply.
    53  # Set-options that removes the filter should not.
    54  
    55  iter filter=4
    56  first
    57  set-options table-filter=reuse
    58  first
    59  set-options table-filter=none
    60  first
    61  ----
    62  a: (3, .)
    63  .
    64  a: (3, .)
    65  .
    66  a: (4, .)