Packages

implicit final class KeyValueWrapper[T] extends AnyVal

Creates an RDD of keys and values out of a generic RDD and apply a partitioner at the same time.

T

the type of values in the RDD

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

Instance Constructors

  1. new KeyValueWrapper(rdd: RDD[T])

    rdd

    the RDD to process

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def keyValueBy[K, V](keyFn: (T) ⇒ K, valueFn: (T) ⇒ V, partitioner: Partitioner)(implicit arg0: ClassTag[K], arg1: ClassTag[V]): RDD[(K, V)]

    Defines a key and a value for each element of rdd and apply a partitioner on the new key.

    Defines a key and a value for each element of rdd and apply a partitioner on the new key.

    K

    the type of the new keys

    V

    the type of the new values

    keyFn

    the function that calculates the key of an RDD element

    valueFn

    the function that calculates the values of an RDD element

    partitioner

    the partitioner for the new keys applied to the result

    returns

    a new RDD of K and V partitioned by K

  8. def keyValueBy[K, V](keyFn: (T) ⇒ K, valueFn: (T) ⇒ V)(implicit arg0: ClassTag[K]): RDD[(K, V)]

    Defines a key and a value for each element of rdd.

    Defines a key and a value for each element of rdd.

    K

    the type of the new keys

    V

    the type of the new values

    keyFn

    the function that calculates the key of an RDD element

    valueFn

    the function that calculates the values of an RDD element

    returns

    a new RDD of K and V

  9. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped