Merge pull request #244 from rxin/dev

Made Serializer and JavaSerializer non private.
This commit is contained in:
Reynold Xin 2012-10-03 11:01:48 -07:00
Родитель 42cd148507 45f4b7cc7e
Коммит 66d848175a
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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
}

Просмотреть файл

@ -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()