Skip to content
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

Merged
merged 36 commits into from
Jul 10, 2024

Conversation

ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Jul 9, 2024

  • Add ITable.PartitionManager API (GetPrimaryReplicas, GetPartition)
  • Cache results based on known PartitionAssignmentTimestamp

@ptupitsyn ptupitsyn self-assigned this Jul 9, 2024
@ptupitsyn ptupitsyn changed the title IGNITE-22150 .NET: Add partition API IGNITE-22150 .NET: Add PartitionManager API Jul 9, 2024
@ptupitsyn ptupitsyn requested a review from isapego July 9, 2024 13:18
Comment on lines 22 to 28
/// <summary>
/// Table partition.
/// </summary>
[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = "Reviewed.")]
public interface IPartition
{
}
Copy link
Contributor

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?

Copy link
Contributor Author

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).

Copy link
Contributor Author

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.

@ptupitsyn ptupitsyn merged commit be15cc7 into apache:main Jul 10, 2024
1 check passed
@ptupitsyn ptupitsyn deleted the ignite-22150 branch July 10, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants