From 4baa9ba4d4a37fe11a4455d09f9238913d0d9862 Mon Sep 17 00:00:00 2001 From: Sayed Bilal Bari Date: Thu, 1 Aug 2024 12:15:18 -0500 Subject: [PATCH] Making access private Signed-off-by: Sayed Bilal Bari --- .../org/apache/spark/sql/rapids/tool/store/AccNameRef.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/scala/org/apache/spark/sql/rapids/tool/store/AccNameRef.scala b/core/src/main/scala/org/apache/spark/sql/rapids/tool/store/AccNameRef.scala index 4ed7ae1c0..b0bda770b 100644 --- a/core/src/main/scala/org/apache/spark/sql/rapids/tool/store/AccNameRef.scala +++ b/core/src/main/scala/org/apache/spark/sql/rapids/tool/store/AccNameRef.scala @@ -23,7 +23,7 @@ import org.apache.spark.sql.rapids.tool.util.EventUtils.normalizeMetricName case class AccNameRef(value: String) object AccNameRef { - val EMPTY_ACC_NAME_REF: AccNameRef = new AccNameRef("N/A") + private val EMPTY_ACC_NAME_REF: AccNameRef = new AccNameRef("N/A") val NAMES_TABLE: ConcurrentHashMap[String, AccNameRef] = { val initMap = new ConcurrentHashMap[String, AccNameRef]() initMap.put("gpuSemaphoreWait", fromString("gpuSemaphoreWait")) @@ -38,6 +38,7 @@ object AccNameRef { AccNameRef.EMPTY_ACC_NAME_REF } } + def fromString(value: String): AccNameRef = new AccNameRef(normalizeMetricName(value)) }