Skip to content

Commit 169e1f8

Browse files
committed
Update Utils.scala
1 parent d6e8caf commit 169e1f8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,12 @@ private[spark] object Utils extends Logging {
29722972
metadata.toString
29732973
}
29742974

2975+
/**
2976+
* Download Ivy URIs dependent jars.
2977+
*
2978+
* @param uri Ivy uri need to be downloaded.
2979+
* @return Comma separated string list of URIs of downloaded jars
2980+
*/
29752981
def resolveMavenDependencies(uri: URI): String = {
29762982
val Seq(repositories, ivyRepoPath, ivySettingsPath) =
29772983
Seq(
@@ -2992,7 +2998,7 @@ private[spark] object Utils extends Logging {
29922998
}
29932999

29943000
/**
2995-
* @param queryString
3001+
* @param queryString Ivy URI query part string.
29963002
* @return Exclude list which contains grape parameters of exclude.
29973003
* Example: Input: exclude=org.mortbay.jetty:jetty,org.eclipse.jetty:jetty-http
29983004
* Output: [org.mortbay.jetty:jetty, org.eclipse.jetty:jetty-http]
@@ -3014,10 +3020,10 @@ private[spark] object Utils extends Logging {
30143020
}
30153021

30163022
/**
3017-
* @param queryString
3018-
* @return Exclude list which contains grape parameters of exclude.
3019-
* Example: Input: exclude=org.mortbay.jetty:jetty,org.eclipse.jetty:jetty-http
3020-
* Output: [org.mortbay.jetty:jetty, org.eclipse.jetty:jetty-http]
3023+
* @param queryString Ivy URI query part string.
3024+
* @return Exclude list which contains grape parameters of transitive.
3025+
* Example: Input: exclude=org.mortbay.jetty:jetty&transitive=true
3026+
* Output: true
30213027
*/
30223028
private def parseTransitive(queryString: String): Boolean = {
30233029
if (queryString == null || queryString.isEmpty) {

0 commit comments

Comments
 (0)