Package org.apache.spark.serializer
Class SerializerInstance
Object
org.apache.spark.serializer.SerializerInstance
- Direct Known Subclasses:
DummySerializerInstance
:: DeveloperApi ::
An instance of a serializer, for use by one thread at a time.
It is legal to create multiple serialization / deserialization streams from the same SerializerInstance as long as those streams are all used within the same thread.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <T> T
deserialize
(ByteBuffer bytes, ClassLoader loader, scala.reflect.ClassTag<T> evidence$3) abstract <T> T
deserialize
(ByteBuffer bytes, scala.reflect.ClassTag<T> evidence$2) abstract DeserializationStream
abstract <T> ByteBuffer
serialize
(T t, scala.reflect.ClassTag<T> evidence$1) abstract SerializationStream
-
Constructor Details
-
SerializerInstance
public SerializerInstance()
-
-
Method Details
-
deserialize
-
deserialize
public abstract <T> T deserialize(ByteBuffer bytes, ClassLoader loader, scala.reflect.ClassTag<T> evidence$3) -
deserializeStream
-
serialize
-
serializeStream
-