Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_RESPONSE |
Constructor and Description |
---|
CSVSaver()
Builds a CSV saver using the default separator and quote from
CSVIterator . |
CSVSaver(char separator,
char quote)
Builds a CSV saver using the supplied separator and quote.
|
Modifier and Type | Method and Description |
---|---|
<T extends Output<T>> |
save(Path csvPath,
Dataset<T> dataset,
Set<String> responseNames)
Saves the dataset to the specified path.
|
<T extends Output<T>> |
save(Path csvPath,
Dataset<T> dataset,
String responseName)
Saves the dataset to the specified path.
|
public static final String DEFAULT_RESPONSE
public CSVSaver(char separator, char quote)
separator
- The column separator.quote
- The quote character.public CSVSaver()
CSVIterator
.public <T extends Output<T>> void save(Path csvPath, Dataset<T> dataset, String responseName) throws IOException
T
- The output type.csvPath
- The path to save to.dataset
- The dataset to save.responseName
- The name of the response variable.IOException
- If the disk write failed.public <T extends Output<T>> void save(Path csvPath, Dataset<T> dataset, Set<String> responseNames) throws IOException
T
- The output type.csvPath
- The path to save to.dataset
- The dataset to save.responseNames
- The response names set.IOException
- If the disk write failed.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.