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

     1  sstable space
     2  ----
     3  requires at least 1 arg(s), only received 0
     4  
     5  # first key in first data block
     6  
     7  sstable space --start=a --end=a
     8  ../sstable/testdata/h.sst
     9  ----
    10  h.sst: 1099
    11  
    12  # first data block through last key in first data block
    13  
    14  sstable space --start=a --end=beteem
    15  ../sstable/testdata/h.sst
    16  ----
    17  h.sst: 1099
    18  
    19  # last key in first data block through first key in second data block
    20  
    21  sstable space --start=beteem --end=bethought
    22  ../sstable/testdata/h.sst
    23  ----
    24  h.sst: 2161
    25  
    26  # last key in first data block through last key in last data block
    27  
    28  sstable space --start=beteem --end=youth
    29  ../sstable/testdata/h.sst
    30  ----
    31  h.sst: 13913
    32  
    33  # second last key in last data block through last key in last data block
    34  
    35  sstable space --start=yourself --end=youth
    36  ../sstable/testdata/h.sst
    37  ----
    38  h.sst: 161
    39  
    40  # Two-level index: first key in first data block
    41  
    42  sstable space --start=a --end=a
    43  ../sstable/testdata/h.no-compression.two_level_index.sst
    44  ----
    45  h.no-compression.two_level_index.sst: 2046
    46  
    47  # Two-level index: last key in last data block
    48  
    49  sstable space --start=youth --end=youth
    50  ../sstable/testdata/h.no-compression.two_level_index.sst
    51  ----
    52  h.no-compression.two_level_index.sst: 254
    53  
    54  # Two-level index: last key in first top-level index partition and first key
    55  # in second top-level index partition
    56  
    57  sstable space --start=headshake --end=health
    58  ../sstable/testdata/h.no-compression.two_level_index.sst
    59  ----
    60  h.no-compression.two_level_index.sst: 4084
    61  
    62  # Two-level index: last key in first top-level index partition through last
    63  # key in last data block.
    64  
    65  sstable space --start=headshake --end=youth
    66  ../sstable/testdata/h.no-compression.two_level_index.sst
    67  ----
    68  h.no-compression.two_level_index.sst: 18619