github.com/cockroachdb/pebble@v1.1.2/internal/keyspan/testdata/visible (about)

     1  define
     2  a-b:{(#5,RANGEKEYSET) (#3,RANGEKEYSET)}
     3  ----
     4  a-b:{(#5,RANGEKEYSET) (#3,RANGEKEYSET)}
     5  
     6  visible
     7  6
     8  5
     9  4
    10  3
    11  2
    12  1
    13  ----
    14  6 : a-b:{(#5,RANGEKEYSET) (#3,RANGEKEYSET)}
    15  5 : a-b:{(#3,RANGEKEYSET)}
    16  4 : a-b:{(#3,RANGEKEYSET)}
    17  3 : a-b:{}
    18  2 : a-b:{}
    19  1 : a-b:{}
    20  
    21  define
    22  a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET)}
    23  ----
    24  a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET)}
    25  
    26  visible
    27  5
    28  1
    29  ----
    30  5 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET)}
    31  1 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET)}
    32  
    33  define
    34  a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#10,RANGEKEYSET) (#9,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    35  ----
    36  a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#10,RANGEKEYSET) (#9,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    37  
    38  # Test 'sandwich cases'. Eg, at snapshot=7 the keys at #10 and #9 are invisible,
    39  # but the batch keys and the keys at #4 and #1 are visible.
    40  
    41  visible
    42  12
    43  10
    44  8
    45  7
    46  4
    47  3
    48  2
    49  1
    50  ----
    51  12: a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#10,RANGEKEYSET) (#9,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    52  10: a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#9,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    53  8 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    54  7 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#4,RANGEKEYSET) (#1,RANGEKEYSET)}
    55  4 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#1,RANGEKEYSET)}
    56  3 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#1,RANGEKEYSET)}
    57  2 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET) (#1,RANGEKEYSET)}
    58  1 : a-c:{(#36028797018963996,RANGEKEYSET) (#36028797018963995,RANGEKEYSET)}