Package org.apache.spark.serializer
Class DummySerializerInstance
Object
org.apache.spark.serializer.SerializerInstance
org.apache.spark.serializer.DummySerializerInstance
Unfortunately, we need a serializer instance in order to construct a DiskBlockObjectWriter.
Our shuffle write path doesn't actually use this serializer (since we end up calling the
`write() OutputStream methods), but DiskBlockObjectWriter still calls some methods on it. To work
around this, we pass a dummy no-op serializer.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(ByteBuffer bytes, ClassLoader loader, scala.reflect.ClassTag<T> ev1) <T> T
deserialize
(ByteBuffer bytes, scala.reflect.ClassTag<T> ev1) <T> ByteBuffer
serialize
(T t, scala.reflect.ClassTag<T> ev1)
-
Field Details
-
INSTANCE
-
-
Method Details
-
serializeStream
- Specified by:
serializeStream
in classSerializerInstance
-
serialize
- Specified by:
serialize
in classSerializerInstance
-
deserializeStream
- Specified by:
deserializeStream
in classSerializerInstance
-
deserialize
- Specified by:
deserialize
in classSerializerInstance
-
deserialize
- Specified by:
deserialize
in classSerializerInstance
-