final case class KeyValues[K, V](rdd: RDD[(K, V)], partitioner: Partitioner[K]) extends Product with Serializable
Uses a Spark RDD to store key-value pairs. Compared to a normal RDD, the use of this class asserts and, where possible, ensures that two conditions are met:
1. There are no duplicate keys. 2. The RDD is partitioned with the given partitioner.
- K
The type of the keys.
- V
The type of the values.
- rdd
The Spark RDD storing a set of key-value pairs. Must be partitioned using
partitioner
.- partitioner
The partitioner.
- Alphabetic
- By Inheritance
- KeyValues
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
KeyValues(rdd: RDD[(K, V)], partitioner: Partitioner[K])
- rdd
The Spark RDD storing a set of key-value pairs. Must be partitioned using
partitioner
.- partitioner
The partitioner.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val partitioner: Partitioner[K]
- val rdd: RDD[(K, V)]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()