ibessonov commented on code in PR #910:
URL: https://github.com/apache/ignite-3/pull/910#discussion_r926696650
##########
modules/configuration/src/main/java/org/apache/ignite/internal/configuration/NamedListConfiguration.java:
##########
@@ -122,6 +123,15 @@ public T getByInternalId(UUID internalId) {
return (T) members.get(value.keyByInternalId(internalId));
}
+ /**
+ * Returns all internal ids of the elements from the list.
+ */
+ public List<UUID> internalIds() {
+ NamedListView<VIEWT> value = value();
+
+ return new ArrayList<>(((NamedListNode) value).internalIds());
Review Comment:
Ok, why not
##########
modules/configuration/src/main/java/org/apache/ignite/internal/configuration/util/ConfigurationUtil.java:
##########
@@ -834,6 +834,10 @@ public T visitNamedListNode(String key, NamedListNode<?>
node) {
assert pathNode.namedListEntry;
+ if (!pathNode.unresolvedName &&
KeyPathNode.INTERNAL_IDS.equals(pathNode.key)) {
+ return (T) new ArrayList<>(node.internalIds());
Review Comment:
Sure
--
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]