Package org.apache.spark.serializer
Class DeserializationStream
Object
org.apache.spark.serializer.DeserializationStream
- All Implemented Interfaces:
 Closeable,AutoCloseable
:: DeveloperApi ::
 A stream for reading serialized objects.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionscala.collection.Iterator<Object>Read the elements of this stream through an iterator.Read the elements of this stream through an iterator over key-value pairs.abstract voidclose()<T> TreadKey(scala.reflect.ClassTag<T> evidence$9) Reads the object representing the key of a key-value pair.abstract <T> TreadObject(scala.reflect.ClassTag<T> evidence$8) The most general-purpose method to read an object.<T> TreadValue(scala.reflect.ClassTag<T> evidence$10) Reads the object representing the value of a key-value pair. 
- 
Constructor Details
- 
DeserializationStream
public DeserializationStream() 
 - 
 - 
Method Details
- 
asIterator
Read the elements of this stream through an iterator. This can only be called once, as reading each element will consume data from the input source.- Returns:
 - (undocumented)
 
 - 
asKeyValueIterator
Read the elements of this stream through an iterator over key-value pairs. This can only be called once, as reading each element will consume data from the input source.- Returns:
 - (undocumented)
 
 - 
close
public abstract void close()- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable
 - 
readKey
public <T> T readKey(scala.reflect.ClassTag<T> evidence$9) Reads the object representing the key of a key-value pair. - 
readObject
public abstract <T> T readObject(scala.reflect.ClassTag<T> evidence$8) The most general-purpose method to read an object. - 
readValue
public <T> T readValue(scala.reflect.ClassTag<T> evidence$10) Reads the object representing the value of a key-value pair. 
 -