ptupitsyn commented on code in PR #3673:
URL: https://github.com/apache/ignite-3/pull/3673#discussion_r1593755089
##########
modules/api/src/main/java/org/apache/ignite/table/Table.java:
##########
@@ -37,6 +39,13 @@ public interface Table {
*/
String name();
+ /**
+ * Gets a partition manager of a table.
+ *
+ * @return Partition manager.
+ */
+ <T extends Partition> PartitionManager<T> partitionManager();
Review Comment:
As discussed in private, let's add `Class<T> partitionClass` parameter to
this method:
* The user is supposed to know the partition type, because it is a part of
the table schema
* If the user makes a mistake, we can throw a meaningful exception right
away (instead of a `ClassCastException` somewhere later)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]