spark-util

Build Status Coverage Status Maven Central

Spark, Hadoop, and Kryo utilities

Kryo registration

Classes that implement the Registrar interface can use various shorthands for registering classes with Kryo.

Adapted from RegistrationTest:

register(
  cls[A],                  // comes with an AlsoRegister that loops in other classes
  arr[Foo],                // register a class and an Array of that class
  cls[B] → BSerializer(),  // use a custom Serializer
  CDRegistrar              // register all of another Registrar's registrations
)

Configuration/Context wrappers

Spark Configuration

Misc