- Notifications
You must be signed in to change notification settings - Fork 135
feat: add PartitionedUpdate support to executor #2228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
661df5f 90539fc 9737322 355f794 ddacf16 65c152f ab9c94a bac3a44 ffd1dc3 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -39,6 +39,13 @@ public enum RpcPriority { | |
| RpcPriority(Priority proto) { | ||
| this.proto = Preconditions.checkNotNull(proto); | ||
| } | ||
| | ||
| public static RpcPriority fromProto(Priority proto) { | ||
| for (RpcPriority e : RpcPriority.values()) { | ||
| if (e.proto.equals(proto)) return e; | ||
| } | ||
| return null; | ||
| ||
| } | ||
| } | ||
| | ||
| /** Marker interface to mark options applicable to both Read and Query operations */ | ||
| | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query - What's the behaviour when null is passed into this method?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RpcPriority.fromProto(null) will return
RpcPriority.UNSPECIFIED. Added a unit test for this too.