Package

org.hammerlab

kryo

Permalink

package kryo

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

Type Members

  1. trait AlsoRegister[T] extends AnyRef

    Permalink

    Type-class for expressing dependent kryo-registrations that should go along with a given type T, e.g.

    Type-class for expressing dependent kryo-registrations that should go along with a given type T, e.g. when T's serialization/deserialization requires serde of other types.

  2. case class ClassAndArray[T](cls: Class[T]) extends Product with Serializable

    Permalink

    Wrapper for a Class that should be directly kryo-registered, along with an Array-wrapped counterpart.

  3. trait Registrar extends AnyRef

    Permalink

    Trait for encapsulating related sets of kryo-registrations.

    Trait for encapsulating related sets of kryo-registrations.

    The register method supports a variable number of Registrations.

    Can be used directly as a org.apache.spark.serializer.KryoRegistrator (see spark.Registrator and spark.Registrar) passed to a org.apache.spark.SparkConf / org.apache.spark.SparkContext, or can be mixed-in to e.g. companion objects of classes to record kryo-registrations required by the Spark operations in the corresponding class, and composed with downstream Registrars (see implicit conversion to Registration via Registration.registratorToRegistration) to track and reuse relevant groups of registrations.

  4. sealed trait Registration extends AnyRef

    Permalink

    Base for (conveniently, implicitly) performing kryo-registrations given various kinds of inputs.

    Base for (conveniently, implicitly) performing kryo-registrations given various kinds of inputs.

    Class instances are the default / base case (and can come with an attendant implicit Serializer and related/required registrations via the AlsoRegister type-class), but Registrars and Registrators can be composed seamlessly as well for easy reuse of groups of registrations.

Value Members

  1. object AlsoRegister

    Permalink
  2. object ClassAndArray extends Serializable

    Permalink
  3. object Registration

    Permalink
  4. def arr[T](implicit ct: ClassTag[T]): ClassAndArray[T]

    Permalink
  5. def cls[T](implicit ct: ClassTag[T]): Class[T]

    Permalink

    Shorthands for registering classes and their Array-counterparts

  6. def serializeAs[T, U](implicit to: (T) ⇒ U, from: (U) ⇒ T): Serializer[T]

    Permalink

    Generate a kryo Serializer that delegates to another type and its Serializer

  7. package spark

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped