U
- user typeI
- item typepublic class MahoutRecommendationFormat<U,I> extends Object implements RecommendationFormat<U,I>
Constructor and Description |
---|
MahoutRecommendationFormat(Parser<U> uParser,
Parser<I> iParser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RecommendationFormat.Reader<U,I> |
getReader(File file)
Gets a reader for a file.
|
RecommendationFormat.Reader<U,I> |
getReader(InputStream in)
Gets a reader for an input stream.
|
RecommendationFormat.Reader<U,I> |
getReader(String path)
Gets a reader for a file path.
|
RecommendationFormat.Writer<U,I> |
getWriter(File file)
Gets a writer for a file.
|
RecommendationFormat.Writer<U,I> |
getWriter(OutputStream out)
Gets a writer for an output stream.
|
RecommendationFormat.Writer<U,I> |
getWriter(String path)
Gets a writer for a file path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReader, getWriter
public RecommendationFormat.Writer<U,I> getWriter(String path) throws IOException
RecommendationFormat
getWriter
in interface RecommendationFormat<U,I>
path
- file pathIOException
- if path does not exist or IO errorpublic RecommendationFormat.Writer<U,I> getWriter(File file) throws IOException
RecommendationFormat
getWriter
in interface RecommendationFormat<U,I>
file
- fileIOException
- if path does not exist or IO errorpublic RecommendationFormat.Writer<U,I> getWriter(OutputStream out) throws IOException
RecommendationFormat
getWriter
in interface RecommendationFormat<U,I>
out
- output streamIOException
- if path does not exist or IO errorpublic RecommendationFormat.Reader<U,I> getReader(String path) throws IOException
RecommendationFormat
getReader
in interface RecommendationFormat<U,I>
path
- file pathIOException
- when IO errorpublic RecommendationFormat.Reader<U,I> getReader(File file) throws IOException
RecommendationFormat
getReader
in interface RecommendationFormat<U,I>
file
- fileIOException
- when IO errorpublic RecommendationFormat.Reader<U,I> getReader(InputStream in) throws IOException
RecommendationFormat
getReader
in interface RecommendationFormat<U,I>
in
- input streamIOException
- when IO errorCopyright © 2016. All rights reserved.