Package org.apache.spark.serializer
Class SerializationStream
Object
org.apache.spark.serializer.SerializationStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
:: DeveloperApi ::
A stream for writing serialized objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
abstract void
flush()
writeAll
(scala.collection.Iterator<T> iter, scala.reflect.ClassTag<T> evidence$7) writeKey
(T key, scala.reflect.ClassTag<T> evidence$5) Writes the object representing the key of a key-value pair.abstract <T> SerializationStream
writeObject
(T t, scala.reflect.ClassTag<T> evidence$4) The most general-purpose method to write an object.writeValue
(T value, scala.reflect.ClassTag<T> evidence$6) Writes the object representing the value of a key-value pair.
-
Constructor Details
-
SerializationStream
public SerializationStream()
-
-
Method Details
-
close
public abstract void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
flush
public abstract void flush() -
writeAll
public <T> SerializationStream writeAll(scala.collection.Iterator<T> iter, scala.reflect.ClassTag<T> evidence$7) -
writeKey
Writes the object representing the key of a key-value pair. -
writeObject
The most general-purpose method to write an object. -
writeValue
Writes the object representing the value of a key-value pair.
-