All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.mahout.sparkbindings.drm.CheckpointedDrmSparkOps.scala Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package org.apache.mahout.sparkbindings.drm

import org.apache.mahout.math.drm.CheckpointedDrm
import org.apache.mahout.sparkbindings.DrmRdd

/** Additional Spark-specific operations. Requires underlying DRM to be running on Spark backend. */
class CheckpointedDrmSparkOps[K](drm: CheckpointedDrm[K]) {

  assert(drm.isInstanceOf[CheckpointedDrmSpark[K]], "must be a Spark-backed matrix")

  private[sparkbindings] val sparkDrm = drm.asInstanceOf[CheckpointedDrmSpark[K]]

  /** Spark matrix customization exposure */
  def rdd = sparkDrm.rddInput.asRowWise()

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy