timoninmaxim commented on a change in pull request #9118:
URL: https://github.com/apache/ignite/pull/9118#discussion_r660516364



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/IndexProcessor.java
##########
@@ -377,6 +377,28 @@ public IndexesRebuildTask idxRebuild() {
         }
     }
 
+    /**
+     * Returns index for specified name.
+     *
+     * @param idxName Index name.
+     * @return Index for specified index name.
+     */
+    public Index index(IndexName idxName) {
+        ddlLock.readLock().lock();
+
+        try {
+            Map<String, Index> idxs = cacheToIdx.get(idxName.cacheName());
+
+            if (idxs == null)
+                return null;
+
+            return idxs.get(idxName.fullName());
+
+        } finally {

Review comment:
       Also changed everywhere within this file.




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