github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/testdata/flushable_batch (about) 1 define 2 a.SET.1:1 3 a.SET.2:2 4 b.SET.1:1 5 b.DEL.2: 6 c.SET.1:1 7 c.MERGE.2:2 8 1.RANGEDEL.3: 9 2.RANGEKEYSET.4: 10 1.RANGEKEYDEL.3: 11 2.RANGEKEYUNSET.3: 12 ---- 13 14 # NB: The range keys get fragmented. 15 16 dump seq=0 17 ---- 18 a#1,1:2 19 a#0,1:1 20 b#3,0: 21 b#2,1:1 22 c#5,2:2 23 c#4,1:1 24 1-3:{(#6,RANGEDEL)} 25 1-2:{(#8,RANGEKEYDEL)} 26 2-3:{(#9,RANGEKEYUNSET,3) (#8,RANGEKEYDEL) (#7,RANGEKEYSET,4,4)} 27 3-4:{(#7,RANGEKEYSET,4,4)} 28 29 dump seq=100 30 ---- 31 a#101,1:2 32 a#100,1:1 33 b#103,0: 34 b#102,1:1 35 c#105,2:2 36 c#104,1:1 37 1-3:{(#106,RANGEDEL)} 38 1-2:{(#108,RANGEKEYDEL)} 39 2-3:{(#109,RANGEKEYUNSET,3) (#108,RANGEKEYDEL) (#107,RANGEKEYSET,4,4)} 40 3-4:{(#107,RANGEKEYSET,4,4)} 41 42 define 43 c.SET.1:1 44 b.SET.1:1 45 a.SET.1:1 46 ---- 47 48 dump seq=1000 49 ---- 50 a#1002,1:1 51 b#1001,1:1 52 c#1000,1:1 53 54 iter 55 first 56 next 57 next 58 next 59 ---- 60 a:1 61 b:1 62 c:1 63 . 64 65 iter 66 last 67 prev 68 prev 69 prev 70 ---- 71 c:1 72 b:1 73 a:1 74 . 75 76 iter lower=b 77 seek-ge b 78 prev 79 ---- 80 b:1 81 . 82 83 iter lower=c 84 seek-lt b 85 ---- 86 . 87 88 iter lower=e 89 last 90 ---- 91 . 92 93 iter upper=1 94 first 95 ---- 96 . 97 98 iter upper=b 99 first 100 next 101 ---- 102 a:1 103 . 104 105 iter upper=b 106 seek-ge b 107 ---- 108 . 109 110 iter 111 set-bounds lower=b 112 seek-ge b 113 prev 114 ---- 115 b:1 116 . 117 118 iter 119 set-bounds lower=c 120 seek-lt b 121 ---- 122 . 123 124 iter 125 set-bounds lower=e 126 last 127 ---- 128 . 129 130 iter 131 set-bounds upper=1 132 first 133 ---- 134 . 135 136 iter 137 set-bounds upper=b 138 first 139 next 140 ---- 141 a:1 142 . 143 144 iter 145 set-bounds upper=b 146 seek-ge b 147 ---- 148 . 149 150 iter 151 first 152 set-bounds upper=b 153 seek-ge b 154 ---- 155 a:1 156 .