Packages

p

com.twitter

chill

package chill

Scala extensions to the Kryo serialization library.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. chill
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AllScalaRegistrar extends IKryoRegistrar

    Registers all the scala (and java) serializers we have.

    Registers all the scala (and java) serializers we have. The registrations are designed to cover most of scala.collecion.immutable, so they can be used in long term persistence scenarios that run with setRegistrationRequired(true).

    When adding new serializers, add them to the end of the list, so compatibility is not broken needlessly for projects using chill for long term persistence - see com.twitter.chill.RegistrationIdsSpec.

  2. class AllScalaRegistrar_0_10_0 extends IKryoRegistrar

    Registrar for everything that was registered in chill 0.10.0

  3. class AllScalaRegistrar_0_9_2 extends IKryoRegistrar

    Registrar for everything that was registered in chill 0.9.2 - included for backwards compatibility.

  4. class BitSetSerializer extends KSerializer[BitSet]
  5. class ClassManifestSerializer[T] extends KSerializer[ClassManifest[T]]
  6. class ClassTagSerializer[T] extends KSerializer[ClassTag[T]]
  7. class CleaningSerializer[T <: AnyRef] extends KSerializer[T]
  8. class EmptyScalaKryoInstantiator extends KryoInstantiator

    This class has a no-arg constructor, suitable for use with reflection instantiation It has no registered serializers, just the standard Kryo configured for Kryo.

  9. class EnumerationSerializer extends KSerializer[Value]
  10. 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.

  11. class FieldAccessFinder extends ClassVisitor
  12. class InnerClosureFinder extends ClassVisitor

    Find inner closures and avoid class initialization

    Find inner closures and avoid class initialization

    val closure1 = (i: Int) => {
      Option(i).map { x =>
        x + someSerializableValue // inner closure
      }
    }
  13. type Input = esotericsoftware.kryo.io.Input
  14. class JavaWrapperCollectionRegistrar extends IKryoRegistrar
  15. type KSerializer[T] = Serializer[T]
  16. type Kryo = esotericsoftware.kryo.Kryo
  17. class KryoBase extends Kryo
  18. class LeftSerializer[A, B] extends KSerializer[Left[A, B]]
  19. class ManifestSerializer[T] extends KSerializer[Manifest[T]]
  20. class MeatLocker[T] extends Serializable

    Use Kryo to provide a "box" which is efficiently Java serializable even if the underlying t is not, as long as it is serializable with Kryo.

    Use Kryo to provide a "box" which is efficiently Java serializable even if the underlying t is not, as long as it is serializable with Kryo.

    Externalizer has replaced this class. Prefer that.

  21. case class MethodIdentifier[T](cls: Class[T], name: String, desc: String) extends Product with Serializable
  22. class ObjectSerializer[T] extends KSerializer[T]

    Uses facts about how scala compiles object singletons to Java + reflection

  23. type Output = esotericsoftware.kryo.io.Output
  24. class RegexSerializer extends KSerializer[Regex]
  25. class RichKryo extends RichKryoCompat

    Enrichment pattern to add methods to Kryo objects TODO: make this a value-class in scala 2.10 This also follows the builder pattern to allow easily chaining this calls

  26. trait RichKryoCompat extends AnyRef
  27. class RightSerializer[A, B] extends KSerializer[Right[A, B]]
  28. class ScalaCollectionsRegistrar extends IKryoRegistrar

    Note that additional scala collections registrations are provided by AllScalaRegistrar.

    Note that additional scala collections registrations are provided by AllScalaRegistrar. They have not been included in this registrar for backwards compatibility reasons.

  29. class ScalaCollectionsRegistrarCompat extends IKryoRegistrar

    Scala collections registrar for compatibility between 2.12- and 2.13+.

    Scala collections registrar for compatibility between 2.12- and 2.13+.

    For 2.12- there's no extra classes that need to be registered.

    See also

    ScalaCollectionsRegistrar and AllScalaRegistrar for all the provided registrations.

  30. class ScalaKryoInstantiator extends EmptyScalaKryoInstantiator

    Makes an empty instantiator then registers everything

  31. class SingletonSerializer[T] extends KSerializer[T]
  32. class SomeSerializer[T] extends KSerializer[Some[T]]
  33. class SortedMapSerializer[A, B] extends KSerializer[SortedMap[A, B]]
  34. class SortedSetSerializer[T] extends KSerializer[SortedSet[T]]
  35. class StreamSerializer[T] extends KSerializer[Stream[T]]
  36. class TraversableSerializer[T, C <: Traversable[T]] extends KSerializer[C]
  37. class Tuple10Serializer[A, B, C, D, E, F, G, H, I, J] extends KSerializer[(A, B, C, D, E, F, G, H, I, J)] with Serializable
  38. class Tuple11Serializer[A, B, C, D, E, F, G, H, I, J, K] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K)] with Serializable
  39. class Tuple12Serializer[A, B, C, D, E, F, G, H, I, J, K, L] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L)] with Serializable
  40. class Tuple13Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M)] with Serializable
  41. class Tuple14Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)] with Serializable
  42. class Tuple15Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)] with Serializable
  43. class Tuple16Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)] with Serializable
  44. class Tuple17Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)] with Serializable
  45. class Tuple18Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)] with Serializable
  46. class Tuple19Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)] with Serializable
  47. class Tuple1DoubleSerializer extends KSerializer[(Double)] with Serializable
  48. class Tuple1IntSerializer extends KSerializer[(Int)] with Serializable
  49. class Tuple1LongSerializer extends KSerializer[(Long)] with Serializable
  50. class Tuple1Serializer[A] extends KSerializer[(A)] with Serializable
  51. class Tuple20Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)] with Serializable
  52. class Tuple21Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)] with Serializable
  53. class Tuple22Serializer[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] extends KSerializer[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)] with Serializable
  54. class Tuple2DoubleDoubleSerializer extends KSerializer[(Double, Double)] with Serializable
  55. class Tuple2DoubleIntSerializer extends KSerializer[(Double, Int)] with Serializable
  56. class Tuple2DoubleLongSerializer extends KSerializer[(Double, Long)] with Serializable
  57. class Tuple2IntDoubleSerializer extends KSerializer[(Int, Double)] with Serializable
  58. class Tuple2IntIntSerializer extends KSerializer[(Int, Int)] with Serializable
  59. class Tuple2IntLongSerializer extends KSerializer[(Int, Long)] with Serializable
  60. class Tuple2LongDoubleSerializer extends KSerializer[(Long, Double)] with Serializable
  61. class Tuple2LongIntSerializer extends KSerializer[(Long, Int)] with Serializable
  62. class Tuple2LongLongSerializer extends KSerializer[(Long, Long)] with Serializable
  63. class Tuple2Serializer[A, B] extends KSerializer[(A, B)] with Serializable
  64. class Tuple3Serializer[A, B, C] extends KSerializer[(A, B, C)] with Serializable
  65. class Tuple4Serializer[A, B, C, D] extends KSerializer[(A, B, C, D)] with Serializable
  66. class Tuple5Serializer[A, B, C, D, E] extends KSerializer[(A, B, C, D, E)] with Serializable
  67. class Tuple6Serializer[A, B, C, D, E, F] extends KSerializer[(A, B, C, D, E, F)] with Serializable
  68. class Tuple7Serializer[A, B, C, D, E, F, G] extends KSerializer[(A, B, C, D, E, F, G)] with Serializable
  69. class Tuple8Serializer[A, B, C, D, E, F, G, H] extends KSerializer[(A, B, C, D, E, F, G, H)] with Serializable
  70. class Tuple9Serializer[A, B, C, D, E, F, G, H, I] extends KSerializer[(A, B, C, D, E, F, G, H, I)] with Serializable
  71. class VolatileByteRefSerializer extends KSerializer[VolatileByteRef]
  72. class WrappedArraySerializer[T] extends KSerializer[WrappedArray[T]]

Value Members

  1. def assertNotRegistered(cls: Class[_]): IKryoRegistrar
  2. def printIfRegistered(cls: Class[_]): IKryoRegistrar
  3. implicit def toInstantiator(fn: () ⇒ Kryo): KryoInstantiator
  4. implicit def toRegistrar(items: Iterable[IKryoRegistrar]): IKryoRegistrar
  5. implicit def toRegistrar(fn: (Kryo) ⇒ Unit): IKryoRegistrar
  6. implicit def toRich(k: Kryo): RichKryo
  7. object ClosureCleaner

    Copied from Spark, written by Matei Zaharia (matei@cs.berkeley.edu).

    Copied from Spark, written by Matei Zaharia (matei@cs.berkeley.edu).

    Ported to ASM 4.0 and refactored for scalding/summingbird by Oscar Boykin

    Original code: https://github.com/mesos/spark/blob/master/core/src/main/scala/spark/ClosureCleaner.scala

  8. object Externalizer extends Serializable
  9. object Instantiators
  10. object KryoSerializer
  11. object MeatLocker extends Serializable
  12. object ScalaKryoInstantiator extends Serializable
  13. object ScalaTupleSerialization extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped