tgravescs commented on a change in pull request #24615: [SPARK-27488][CORE]
Driver interface to support GPU resources
URL: https://github.com/apache/spark/pull/24615#discussion_r286182317
##########
File path: core/src/main/scala/org/apache/spark/SparkConf.scala
##########
@@ -406,6 +406,13 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable
with Logging with Seria
.map { case (k, v) => (k.substring(prefix.length), v) }
}
+ /**
+ * Get all parameters that start with `prefix` and end with 'suffix'
+ */
+ def getAllWithPrefixAndSuffix(prefix: String, suffix: String):
Array[(String, String)] = {
Review comment:
I put it here because it really seems like just a variation of
getAllWithPrefix. There are a bunch of configs now that use this prefix type
format, but if you have a better idea I can move it and we can always propogate
it up if some one else needs it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]