Packages

class StateSerializer[K, V] extends AnyRef

Serializes the compiler state represented as RDD[K, V] to/from an RDD[K, Payload]. The compiler-specific serializer for a single spark partition needs to be defined when instantiating class. This class saves tha state in a deterministic way by:

- partitioning by key - sorting by key inside the partitions

K

the type of the state key, to write the state in a stable way this type must have an ordering

V

the type of the state values

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

Instance Constructors

  1. new StateSerializer(statePartitionSerializer: StatePartitionSerializer[K, V], partitions: Int)(implicit arg0: Ordering[K], arg1: ClassTag[K], arg2: ClassTag[V])

    statePartitionSerializer

    the partition.StatePartitionSerializer to serialize state information

    partitions

    the maximum number of partitions in which to group the state entries

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def deserializeRDD(prefixKey: Key, rdd: RDD[(Key, Payload)]): RDD[(K, V)]

    Deserializes an RDD of prefix keys and com.here.platform.data.processing.blobstore.Payload.

    Deserializes an RDD of prefix keys and com.here.platform.data.processing.blobstore.Payload. Each Payload consisting of a scala.List of items of type (K,V) serialized using a given object serializer.

    prefixKey

    the prefix key to select the partitions

    rdd

    the RDD to be deserialized

    returns

    the deserialized RDD

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val partitioner: Partitioner[Key]
  17. def serializeRDD(prefixKey: Key, rdd: RDD[(K, V)]): RDD[(Key, Payload)]

    Serializes an RDD of (K,V) in another RDD of com.here.platform.data.processing.blobstore.Payload consisting of a Iterable[(K, V)] serialized using specific serializer.

    Serializes an RDD of (K,V) in another RDD of com.here.platform.data.processing.blobstore.Payload consisting of a Iterable[(K, V)] serialized using specific serializer. The RDD is serialized by partitions. Each RDD partition is encoded into a single com.here.platform.data.processing.blobstore.Payload and a catalog partition key is generated out of a template key, so that the result set of payloads can be committed to a catalog.

    prefixKey

    the catalog template key where the serialized RDD is going to be published

    rdd

    the RDD to be serialized

    returns

    the serialized RDD ready to be uploaded

    Note

    an hash based repartitioning happens in this function

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped