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 SummaryConstructors
- 
Method SummaryModifier 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- 
DeserializationStreampublic DeserializationStream()
 
- 
- 
Method Details- 
asIteratorRead 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)
 
- 
asKeyValueIteratorRead 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)
 
- 
closepublic abstract void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
- 
readKeypublic <T> T readKey(scala.reflect.ClassTag<T> evidence$9) Reads the object representing the key of a key-value pair.
- 
readObjectpublic abstract <T> T readObject(scala.reflect.ClassTag<T> evidence$8) The most general-purpose method to read an object.
- 
readValuepublic <T> T readValue(scala.reflect.ClassTag<T> evidence$10) Reads the object representing the value of a key-value pair.
 
-