diff options
author | Reynold Xin <rxin@cs.berkeley.edu> | 2012-10-03 10:20:59 -0700 |
---|---|---|
committer | Reynold Xin <rxin@cs.berkeley.edu> | 2012-10-03 10:20:59 -0700 |
commit | 45f4b7cc7e9f05d6f197fde3281dfc55ed8dd978 (patch) | |
tree | 2883abb5b23c727f29fe11ce5ac1af0507b11e60 /core/src/main | |
parent | 42cd148507f6f04eced16e1ce87be0c0f33acfc4 (diff) | |
download | spark-45f4b7cc7e9f05d6f197fde3281dfc55ed8dd978.tar.gz spark-45f4b7cc7e9f05d6f197fde3281dfc55ed8dd978.tar.bz2 spark-45f4b7cc7e9f05d6f197fde3281dfc55ed8dd978.zip |
Made Serializer and JavaSerializer non private.
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/spark/JavaSerializer.scala | 2 | ||||
-rw-r--r-- | core/src/main/scala/spark/Serializer.scala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/scala/spark/JavaSerializer.scala b/core/src/main/scala/spark/JavaSerializer.scala index 39d554b6a5..863d00eeb5 100644 --- a/core/src/main/scala/spark/JavaSerializer.scala +++ b/core/src/main/scala/spark/JavaSerializer.scala @@ -57,6 +57,6 @@ private[spark] class JavaSerializerInstance extends SerializerInstance { } } -private[spark] class JavaSerializer extends Serializer { +class JavaSerializer extends Serializer { def newInstance(): SerializerInstance = new JavaSerializerInstance } diff --git a/core/src/main/scala/spark/Serializer.scala b/core/src/main/scala/spark/Serializer.scala index c0e08289d8..d8bcf6326a 100644 --- a/core/src/main/scala/spark/Serializer.scala +++ b/core/src/main/scala/spark/Serializer.scala @@ -9,10 +9,10 @@ import it.unimi.dsi.fastutil.io.FastByteArrayOutputStream import spark.util.ByteBufferInputStream /** - * A serializer. Because some serialization libraries are not thread safe, this class is used to + * A serializer. Because some serialization libraries are not thread safe, this class is used to * create SerializerInstances that do the actual serialization. */ -private[spark] trait Serializer { +trait Serializer { def newInstance(): SerializerInstance } @@ -88,7 +88,7 @@ private[spark] trait DeserializationStream { } gotNext = true } - + override def hasNext: Boolean = { if (!gotNext) { getNext() |