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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]