Skip to content

Commit

Permalink
[SPARK-48080][K8S] Promote *MainAppResource and NonJVMResource to…
Browse files Browse the repository at this point in the history
… `DeveloperApi`
  • Loading branch information
dongjoon-hyun committed May 2, 2024
1 parent 4b16238 commit e5d819b
Showing 1 changed file with 28 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,38 @@
*/
package org.apache.spark.deploy.k8s.submit

private[spark] sealed trait MainAppResource
import org.apache.spark.annotation.{DeveloperApi, Since, Stable}

private[spark] sealed trait NonJVMResource
/**
* :: DeveloperApi ::
*
* All traits and classes in this file are used by K8s module and Spark K8s operator.
*/

@Stable
@DeveloperApi
@Since("2.3.0")
sealed trait MainAppResource

@Stable
@DeveloperApi
@Since("2.4.0")
sealed trait NonJVMResource

private[spark] case class JavaMainAppResource(primaryResource: Option[String])
@Stable
@DeveloperApi
@Since("3.0.0")
case class JavaMainAppResource(primaryResource: Option[String])
extends MainAppResource

private[spark] case class PythonMainAppResource(primaryResource: String)
@Stable
@DeveloperApi
@Since("2.4.0")
case class PythonMainAppResource(primaryResource: String)
extends MainAppResource with NonJVMResource

private[spark] case class RMainAppResource(primaryResource: String)
@Stable
@DeveloperApi
@Since("2.4.0")
case class RMainAppResource(primaryResource: String)
extends MainAppResource with NonJVMResource

0 comments on commit e5d819b

Please sign in to comment.