korlov42 commented on code in PR #1191:
URL: https://github.com/apache/ignite-3/pull/1191#discussion_r1004210687
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -1557,6 +1577,103 @@ public CompletableFuture<TableImpl>
tableAsyncInternal(UUID id, boolean checkCon
return getTblFut.whenComplete((unused, throwable) ->
tablesByIdVv.removeWhenComplete(tablesListener));
}
+ /**
+ * Register the index with given id in a table.
+ *
+ * @param tableId A table id to register index in.
+ * @param indexId An index id os the index to register.
+ * @param searchRowResolver Function which converts given table row to an
index key.
+ */
+ public void registerHashIndex(UUID tableId, UUID indexId,
Function<BinaryRow, CompletableFuture<BinaryTuple>> searchRowResolver) {
Review Comment:
It has to be a part of a table, but we don't have such a structure right
now. Both `TableImpl` and `InternalTableImpl` have no access to the partitions
the table consists of.
--
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]