Skip to content

Commit

Permalink
Making access private
Browse files Browse the repository at this point in the history
Signed-off-by: Sayed Bilal Bari <[email protected]>
  • Loading branch information
bilalbari committed Aug 1, 2024
1 parent 377407e commit 4baa9ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -38,6 +38,7 @@ object AccNameRef {
AccNameRef.EMPTY_ACC_NAME_REF
}
}

def fromString(value: String): AccNameRef =
new AccNameRef(normalizeMetricName(value))
}

0 comments on commit 4baa9ba

Please sign in to comment.