-
Notifications
You must be signed in to change notification settings - Fork 91
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
IGNITE-22150 .NET: Add PartitionManager API #4062
Conversation
/// <summary> | ||
/// Table partition. | ||
/// </summary> | ||
[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = "Reviewed.")] | ||
public interface IPartition | ||
{ | ||
} |
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.
Hmm, should not we at least support comparison 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.
Do you mean relative comparison, or just equality?
Value-based equality is supported by the HashPartition
implementation (two instances with the same id are considered equal).
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.
After some thinking I agree. Added IEquatable to the interface to make things clearer.
ITable.PartitionManager
API (GetPrimaryReplicas
,GetPartition
)PartitionAssignmentTimestamp