You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2026/07/30 18:12:00 UTC
[jira] [Created] (HDDS-16043) Use EnumMap for ports in DatanodeDetails
Tsz-wo Sze created HDDS-16043:
---------------------------------
Summary: Use EnumMap for ports in DatanodeDetails
Key: HDDS-16043
URL: https://issues.apache.org/jira/browse/HDDS-16043
Project: Apache Ozone
Issue Type: Improvement
Components: SCM
Reporter: Tsz-wo Sze
{code}
// DatanodeDetails
private final List<Port> ports;
{code}
{code}
public static final class Port {
private final Name name;
private final Integer value;
public enum Name { ... }
{code}
Use EnumMap<Port.Name, Port> instead of List<Port> to avoid linear search.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org