You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ibessonov (via GitHub)" <gi...@apache.org> on 2023/06/06 10:38:52 UTC

[GitHub] [ignite-3] ibessonov commented on a diff in pull request #2143: IGNITE-19646 Transform IndexManager to internally work against Catalog event types

ibessonov commented on code in PR #2143:
URL: https://github.com/apache/ignite-3/pull/2143#discussion_r1219391835


##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/mv/AbstractPageMemoryMvPartitionStorage.java:
##########
@@ -1007,4 +1020,18 @@ IndexMeta createIndexMetaForNewIndex(int indexId) {
             return sortedIndexes.get(indexId);
         });
     }
+
+    private static @Nullable TableIndexView findIndexView(TablesView tablesView, int indexId) {
+        return tablesView.indexes().stream()
+                .filter(tableIndexView -> indexId == tableIndexView.id())
+                .findFirst()
+                .orElse(null);
+    }
+
+    private static @Nullable TableView findTableView(TablesView tablesView, int tableId) {
+        return tablesView.tables().stream()
+                .filter(tableIndexView -> tableId == tableIndexView.id())

Review Comment:
   ```suggestion
                   .filter(tableView -> tableId == tableView.id())
   ```



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org