org.apache.spark.rdd.RDD.unpersist()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(333)

本文整理了Java中org.apache.spark.rdd.RDD.unpersist方法的一些代码示例,展示了RDD.unpersist的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RDD.unpersist方法的具体详情如下:
包路径:org.apache.spark.rdd.RDD
类名称:RDD
方法名:unpersist

RDD.unpersist介绍

暂无

代码示例

代码示例来源:origin: OryxProject/oryx

/**
 * Manually unpersists the RDDs that are persisted inside a model.
 *
 * @param model model whose RDDs were persisted
 */
private static void unpersist(MatrixFactorizationModel model) {
 model.userFeatures().unpersist(false);
 model.productFeatures().unpersist(false);
}

代码示例来源:origin: OryxProject/oryx

trainingRatingDataRDD.cache();
MatrixFactorizationModel model = als.run(trainingRatingDataRDD);
trainingRatingDataRDD.unpersist(false);

代码示例来源:origin: apache/tinkerpop

public static void removeRDD(final String name) {
  if (null == name)
    return;
  Spark.refresh();
  final RDD<?> rdd = NAME_TO_RDD.remove(name);
  if (null != rdd)
    rdd.unpersist(true);
}

代码示例来源:origin: org.apache.tinkerpop/spark-gremlin

public static void removeRDD(final String name) {
  if (null == name)
    return;
  Spark.refresh();
  final RDD<?> rdd = NAME_TO_RDD.remove(name);
  if (null != rdd)
    rdd.unpersist(true);
}

代码示例来源:origin: ai.h2o/sparkling-water-ml

svm.run(training) :
        svm.run(training, vec2vec(_parms.initialWeights().vecs()));
training.unpersist(false);

相关文章