org.apache.spark.serializer
Class JavaIterableWrapperSerializer

Object
  extended by com.esotericsoftware.kryo.Serializer<Iterable<?>>
      extended by org.apache.spark.serializer.JavaIterableWrapperSerializer

public class JavaIterableWrapperSerializer
extends com.esotericsoftware.kryo.Serializer<Iterable<?>>

A Kryo serializer for serializing results returned by asJavaIterable.

The underlying object is scala.collection.convert.Wrappers$IterableWrapper. Kryo deserializes this into an AbstractCollection, which unfortunately doesn't work.


Constructor Summary
JavaIterableWrapperSerializer()
           
 
Method Summary
 Iterable<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input in, Class<Iterable<?>> clz)
           
static Object wrapperClass()
           
 void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output out, Iterable<?> obj)
           
 
Methods inherited from class com.esotericsoftware.kryo.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaIterableWrapperSerializer

public JavaIterableWrapperSerializer()
Method Detail

wrapperClass

public static Object wrapperClass()

write

public void write(com.esotericsoftware.kryo.Kryo kryo,
                  com.esotericsoftware.kryo.io.Output out,
                  Iterable<?> obj)
Specified by:
write in class com.esotericsoftware.kryo.Serializer<Iterable<?>>

read

public Iterable<?> read(com.esotericsoftware.kryo.Kryo kryo,
                        com.esotericsoftware.kryo.io.Input in,
                        Class<Iterable<?>> clz)
Specified by:
read in class com.esotericsoftware.kryo.Serializer<Iterable<?>>