public final class RatingWriters extends Object
Modifier and Type | Method and Description |
---|---|
static RatingWriter |
csv(File file)
Write ratings to a CSV file.
|
static RatingWriter |
csv(File file,
boolean ts)
Write ratings to a CSV file.
|
static RatingWriter |
packed(File file,
BinaryFormatFlag... flags)
Write ratings to a packed file.
|
static RatingWriter |
packed(File file,
EnumSet<BinaryFormatFlag> flags)
Write ratings to a packed file.
|
public static RatingWriter csv(File file) throws IOException
Write ratings to a CSV file.
file
- The file to write to.IOException
- if there is an error opening the file.public static RatingWriter csv(File file, boolean ts) throws IOException
Write ratings to a CSV file.
file
- The file to write to.ts
- Whether or not to include timestamps.IOException
- if there is an error opening the file.public static RatingWriter packed(File file, BinaryFormatFlag... flags) throws IOException
Write ratings to a packed file.
file
- The file to write to.IOException
- if there is an error opening the file.public static RatingWriter packed(File file, EnumSet<BinaryFormatFlag> flags) throws IOException
Write ratings to a packed file.
file
- The file to write to.IOException
- if there is an error opening the file.