korlov42 commented on code in PR #1191:
URL: https://github.com/apache/ignite-3/pull/1191#discussion_r1003274471


##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/engine/MvTableStorage.java:
##########
@@ -118,6 +119,17 @@ default IndexStorage getOrCreateIndex(int partitionId, 
UUID indexId) {
      */
     HashIndexStorage getOrCreateHashIndex(int partitionId, UUID indexId);
 
+    /**
+     * Returns an already created Hash Index with the given descriptor or 
creates a new one if it does not exist.
+     *
+     * @param partitionId Partition ID for which this index has been 
configured.
+     * @param descriptor A description of the index to be created.
+     * @return Hash Index storage.
+     * @throws StorageException If the given partition does not exist, or the 
given index does not exist or is not configured as a
+     *         hash index.
+     */
+    HashIndexStorage getOrCreateHashIndex(int partitionId, HashIndexDescriptor 
descriptor);

Review Comment:
   For the current moment I need "get-or-create" semantic, because I failed to 
find a better place to creates index storages



-- 
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]

Reply via email to