public class WriteCSVResult extends Object implements RecordSetWriter
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.csv.CSVFormat |
csvFormat |
private String |
dateFormat |
private boolean |
includeHeaderLine |
private RecordSchema |
recordSchema |
private SchemaAccessWriter |
schemaWriter |
private String |
timeFormat |
private String |
timestampFormat |
Constructor and Description |
---|
WriteCSVResult(org.apache.commons.csv.CSVFormat csvFormat,
RecordSchema recordSchema,
SchemaAccessWriter schemaWriter,
String dateFormat,
String timeFormat,
String timestampFormat,
boolean includeHeaderLine) |
Modifier and Type | Method and Description |
---|---|
private String |
getFormat(RecordField field) |
String |
getMimeType() |
WriteResult |
write(Record record,
OutputStream rawOut) |
WriteResult |
write(RecordSet rs,
OutputStream rawOut) |
private final org.apache.commons.csv.CSVFormat csvFormat
private final RecordSchema recordSchema
private final SchemaAccessWriter schemaWriter
private final String dateFormat
private final String timeFormat
private final String timestampFormat
private final boolean includeHeaderLine
public WriteCSVResult(org.apache.commons.csv.CSVFormat csvFormat, RecordSchema recordSchema, SchemaAccessWriter schemaWriter, String dateFormat, String timeFormat, String timestampFormat, boolean includeHeaderLine)
private String getFormat(RecordField field)
public WriteResult write(RecordSet rs, OutputStream rawOut) throws IOException
write
in interface RecordSetWriter
IOException
public WriteResult write(Record record, OutputStream rawOut) throws IOException
write
in interface RecordWriter
IOException
public String getMimeType()
getMimeType
in interface RecordWriter
Copyright © 2017 Apache NiFi Project. All rights reserved.