diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-21 14:57:52 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-03-21 14:57:52 +0000 |
commit | df61fbd9787efbb80ff20927cb6b95002423d2f2 (patch) | |
tree | 2ea92885bbf12c4a4abc70c5dd0840360581b81c /core/src | |
parent | 17a3f00676ca02155557f6ee55a1565e96893792 (diff) | |
download | spark-df61fbd9787efbb80ff20927cb6b95002423d2f2.tar.gz spark-df61fbd9787efbb80ff20927cb6b95002423d2f2.tar.bz2 spark-df61fbd9787efbb80ff20927cb6b95002423d2f2.zip |
[SPARK-13986][CORE][MLLIB] Remove `DeveloperApi`-annotations for non-publics
## What changes were proposed in this pull request?
Spark uses `DeveloperApi` annotation, but sometimes it seems to conflict with visibility. This PR tries to fix those conflict by removing annotations for non-publics. The following is the example.
**JobResult.scala**
```scala
DeveloperApi
sealed trait JobResult
DeveloperApi
case object JobSucceeded extends JobResult
-DeveloperApi
private[spark] case class JobFailed(exception: Exception) extends JobResult
```
## How was this patch tested?
Pass the existing Jenkins test.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11797 from dongjoon-hyun/SPARK-13986.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/scheduler/JobResult.scala | 1 | ||||
-rw-r--r-- | core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/core/src/main/scala/org/apache/spark/scheduler/JobResult.scala b/core/src/main/scala/org/apache/spark/scheduler/JobResult.scala index 4cd6cbe189..4a304a078d 100644 --- a/core/src/main/scala/org/apache/spark/scheduler/JobResult.scala +++ b/core/src/main/scala/org/apache/spark/scheduler/JobResult.scala @@ -29,5 +29,4 @@ sealed trait JobResult @DeveloperApi case object JobSucceeded extends JobResult -@DeveloperApi private[spark] case class JobFailed(exception: Exception) extends JobResult diff --git a/core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala b/core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala index efc2482c74..22d7a4988b 100644 --- a/core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala +++ b/core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala @@ -19,17 +19,13 @@ package org.apache.spark.util.collection import scala.reflect.ClassTag -import org.apache.spark.annotation.DeveloperApi - /** - * :: DeveloperApi :: * A fast hash map implementation for nullable keys. This hash map supports insertions and updates, * but not deletions. This map is about 5X faster than java.util.HashMap, while using much less * space overhead. * * Under the hood, it uses our OpenHashSet implementation. */ -@DeveloperApi private[spark] class OpenHashMap[K : ClassTag, @specialized(Long, Int, Double) V: ClassTag]( initialCapacity: Int) |