-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact: add facility to split and encode spans
Add `SplitAndEncodeSpan` which can split a range del or range key span and encode the first split.
- Loading branch information
1 parent
bc2d51c
commit ab6cd13
Showing
4 changed files
with
169 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
set | ||
a-c:{(#9,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
---- | ||
|
||
encode | ||
---- | ||
Encoded: a-c:{(#9,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
Remaining: . | ||
|
||
set | ||
a-c:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
---- | ||
|
||
encode up-to=A | ||
---- | ||
Encoded: . | ||
Remaining: a-c:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
|
||
encode up-to=a | ||
---- | ||
Encoded: . | ||
Remaining: a-c:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
|
||
encode up-to=b | ||
---- | ||
Encoded: a-b:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
Remaining: b-c:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
|
||
encode up-to=c | ||
---- | ||
Encoded: b-c:{(#9,RANGEKEYUNSET,@3) (#8,RANGEKEYSET,@3,foo5) (#4,RANGEKEYSET,@3,foo3) (#3,RANGEKEYSET,@3,foo2)} | ||
Remaining: . | ||
|
||
set | ||
a-c:{(#9,RANGEDEL) (#8,RANGEDEL) (#4,RANGEDEL)) | ||
---- | ||
|
||
encode up-to=b | ||
---- | ||
Encoded: a-b:{(#9,RANGEDEL) (#8,RANGEDEL) (#4,RANGEDEL)} | ||
Remaining: b-c:{(#9,RANGEDEL) (#8,RANGEDEL) (#4,RANGEDEL)} | ||
|
||
encode | ||
---- | ||
Encoded: b-c:{(#9,RANGEDEL) (#8,RANGEDEL) (#4,RANGEDEL)} | ||
Remaining: . | ||
|
||
encode | ||
---- | ||
Encoded: . | ||
Remaining: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters