Class SerializationStream

Object
org.apache.spark.serializer.SerializationStream
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class SerializationStream extends Object implements Closeable
:: DeveloperApi :: A stream for writing serialized objects.
  • Constructor Details

    • SerializationStream

      public SerializationStream()
  • Method Details

    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • flush

      public abstract void flush()
    • writeAll

      public <T> SerializationStream writeAll(scala.collection.Iterator<T> iter, scala.reflect.ClassTag<T> evidence$7)
    • writeKey

      public <T> SerializationStream writeKey(T key, scala.reflect.ClassTag<T> evidence$5)
      Writes the object representing the key of a key-value pair.
    • writeObject

      public abstract <T> SerializationStream writeObject(T t, scala.reflect.ClassTag<T> evidence$4)
      The most general-purpose method to write an object.
    • writeValue

      public <T> SerializationStream writeValue(T value, scala.reflect.ClassTag<T> evidence$6)
      Writes the object representing the value of a key-value pair.