Class CSVWriter
- java.lang.Object
-
- org.apache.solr.internal.csv.writer.CSVWriter
-
public class CSVWriter extends Object
CSVWriter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSVConfig
getConfig()
void
setConfig(CSVConfig config)
Set the CSVConfigvoid
setWriter(Writer writer)
Set the writer to write the CSV file to.void
writeRecord(Map map)
protected String
writeValue(CSVField field, String value)
-
-
-
Constructor Detail
-
CSVWriter
public CSVWriter()
-
CSVWriter
public CSVWriter(CSVConfig config)
-
-
Method Detail
-
writeRecord
public void writeRecord(Map map)
-
writeValue
protected String writeValue(CSVField field, String value) throws Exception
- Throws:
Exception
-
getConfig
public CSVConfig getConfig()
- Returns:
- the CVSConfig or null if not present
-
setConfig
public void setConfig(CSVConfig config)
Set the CSVConfig- Parameters:
config
- the CVSConfig
-
setWriter
public void setWriter(Writer writer)
Set the writer to write the CSV file to.- Parameters:
writer
- the writer.
-
-