com.twitter.chill

Externalizer

class Externalizer[T] extends Externalizable with KryoSerializable

This is a more fault-tolerant MeatLocker that tries first to do Java serialization, and then falls back to Kryo serialization if that does not work.

Linear Supertypes
KryoSerializable, Externalizable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Externalizer
  2. KryoSerializable
  3. Externalizable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Externalizer()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get: T

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getOption: Option[T]

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def javaWorks: Boolean

  17. def kryo: KryoInstantiator

    Override this to configure Kryo creation with a named subclass, e.

    Override this to configure Kryo creation with a named subclass, e.g. class MyExtern[T] extends Externalizer[T] { override def kryo = myInstantiator } note that if this is not a named class on the classpath, we have to serialize the KryoInstantiator at the same time, which would increase size.

    Attributes
    protected
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def read(kryo: Kryo, input: Input): Unit

    Definition Classes
    Externalizer → KryoSerializable
  22. def readExternal(in: ObjectInput): Unit

    Definition Classes
    Externalizer → Externalizable
  23. def set(it: T): Unit

    Unfortunately, Java serialization requires mutable objects if you are going to control how the serialization is done.

    Unfortunately, Java serialization requires mutable objects if you are going to control how the serialization is done. Use the companion object to creat new instances of this

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def write(kryo: Kryo, output: Output): Unit

    Definition Classes
    Externalizer → KryoSerializable
  30. def writeExternal(out: ObjectOutput): Unit

    Definition Classes
    Externalizer → Externalizable
  31. def writeJava(out: ObjectOutput): Boolean

    Attributes
    protected
  32. def writeKryo(out: ObjectOutput, kryo: KryoInstantiator): Boolean

    Attributes
    protected
  33. def writeKryo(out: ObjectOutput): Boolean

    Attributes
    protected

Inherited from KryoSerializable

Inherited from Externalizable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped