[
https://issues.apache.org/jira/browse/HAMA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Samuel Guo updated HAMA-86:
---------------------------
Description:
Let's discuss the generic load/save operation from/to other sources(such as,
FileSystem).
matrices in FileSystem may have different format, parsing of the file as a
matrix depends on the format.
we may need some methods like:
/**
* Save a matrix as file using specified OutputFormat.
*
* @param path
* the file path.
* @param format
* the format of the matrix.
* @return true if saved
* @throws IOException
*/
public boolean saveAsFile(Path filepath, OutputFormat format) throws
IOException;
/**
* Load a matrix from file
*
* @param path
* the file path.
* @param format
* the format of the matrix.
* @return true if saved
* @throws IOException
*/
public static Matrix loadFromFile(Path filepath, OutputFormat format) throws
IOException;
was:
we need a generic "pathname" class to identify the input & output.
"pathname" can contain two parts: one is scheme, such as HBASE or HDFS; one
will be the actual name, such as table name in HBase, filename in HDFS.
I've changed the description.
> Implements generic load/save operations in hama
> -----------------------------------------------
>
> Key: HAMA-86
> URL: https://issues.apache.org/jira/browse/HAMA-86
> Project: Hama
> Issue Type: Improvement
> Components: implementation
> Affects Versions: 0.1.0
> Reporter: Samuel Guo
> Fix For: 0.1.0
>
>
> Let's discuss the generic load/save operation from/to other sources(such as,
> FileSystem).
> matrices in FileSystem may have different format, parsing of the file as a
> matrix depends on the format.
> we may need some methods like:
> /**
> * Save a matrix as file using specified OutputFormat.
> *
> * @param path
> * the file path.
> * @param format
> * the format of the matrix.
> * @return true if saved
> * @throws IOException
> */
> public boolean saveAsFile(Path filepath, OutputFormat format) throws
> IOException;
> /**
> * Load a matrix from file
> *
> * @param path
> * the file path.
> * @param format
> * the format of the matrix.
> * @return true if saved
> * @throws IOException
> */
> public static Matrix loadFromFile(Path filepath, OutputFormat format)
> throws IOException;
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.