From e1eb25177ddc611c867c0f4b1a99c885fc34de11 Mon Sep 17 00:00:00 2001 From: Vincenzo Selvaggio Date: Wed, 5 Nov 2014 10:29:58 +0000 Subject: [PATCH] removed serialization part, this will be part of the ModelExporter helper object --- .../spark/mllib/export/ModelExport.scala | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/export/ModelExport.scala b/mllib/src/main/scala/org/apache/spark/mllib/export/ModelExport.scala index c0fea6ad95d9b..a6daa6686cf5a 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/export/ModelExport.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/export/ModelExport.scala @@ -17,22 +17,6 @@ package org.apache.spark.mllib.export -import java.io.OutputStream -import java.io.FileOutputStream -import java.io.File - -trait ModelExport { - - /** - * Write the exported model to the output stream specified - */ - def save(outputStream: OutputStream): Unit - - /** - * Write the exported model to the local file specified - */ - def saveLocalFile(path: String): Unit = { - save(new FileOutputStream(new File(path))); - } +private[mllib] trait ModelExport { }