Skip to content

Commit

Permalink
make java return values immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgravescs committed Apr 2, 2020
1 parent 2d754f7 commit 1071f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private[spark] class ExecutorResourceRequests() extends Serializable {

def requests: Map[String, ExecutorResourceRequest] = _executorResources.asScala.toMap

def requestsJMap: JMap[String, ExecutorResourceRequest] = _executorResources.asScala.asJava
def requestsJMap: JMap[String, ExecutorResourceRequest] = _executorResources.asScala.toMap.asJava

/**
* Specify heap memory. The value specified will be converted to MiB.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private[spark] class TaskResourceRequests() extends Serializable {

def requests: Map[String, TaskResourceRequest] = _taskResources.asScala.toMap

def requestsJMap: JMap[String, TaskResourceRequest] = _taskResources.asScala.asJava
def requestsJMap: JMap[String, TaskResourceRequest] = _taskResources.asScala.toMap.asJava

/**
* Specify number of cpus per Task.
Expand Down

0 comments on commit 1071f40

Please sign in to comment.