-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvutils: Use
VersionedOffsetBuilder
where possible, and introduce `…
…VersionedOffsetMutator`. [KVL-1154] (#11277) * kvutils: Remove `VersionedOffsetBuilder.apply`. Doesn't do anything. * ledger-on-memory: Use `VersionedOffsetBuilder`. * indexer-benchmark: Use `VersionedOffsetBuilder`. * ledger-on-sql: Use `VersionedOffsetBuilder`. * kvutils: Use `VersionedOffsetBuilder` in tests. * kvutils: Create a case class for `VersionedOffsetBuilder#split`. * kvutils: Delete unused methods from the offset builders. * kvutils: Use `Bytes#startWith` to check the offset version. * kvutils: Move offset splitting into `VersionedOffset`. * kvutils: Extract out versioned offset generators. * kvutils: Replace `OffsetBuilder` with `VersionedOffsetMutator`. This takes care of the last usages of `OffsetBuilder`, which were to modify the lowest component of the offset. CHANGELOG_BEGIN CHANGELOG_END * kvutils: Randomize the offset version in testing. To make sure we don't use a hard-coded offset version anywhere. * kvutils: `Random.between` is not available in Scala 2.12. * kvutils: Move offset mutation methods to `VersionedOffset`. * kvutils: Move the versioned offset construction into `VersionedOffset`. The `VersionedOffsetBuilder` is still useful as it remembers the version, meaning we only need to specify it once.
- Loading branch information
1 parent
81fde97
commit 8f94cff
Showing
38 changed files
with
475 additions
and
473 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
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
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
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
Oops, something went wrong.