public interface RecordSetWriter extends RecordWriter
A ResultSetWriter is responsible for writing a ResultSet to a given OutputStream
.
PLEASE NOTE: This interface is still considered 'unstable' and may change in a non-backward-compatible manner between minor or incremental releases of NiFi.
Modifier and Type | Method and Description |
---|---|
void |
beginRecordSet()
Begins a new RecordSet
|
WriteResult |
finishRecordSet()
Finishes the currently active RecordSet and returns a WriteResult that includes information about what was written
|
WriteResult |
write(RecordSet recordSet)
Writes the given result set to the given output stream
|
flush, getMimeType, write
WriteResult write(RecordSet recordSet) throws IOException
recordSet
- the record set to serializeIOException
- if unable to write to the given OutputStreamvoid beginRecordSet() throws IOException
IOException
- if unable to write to the underlying OutputStreamIllegalStateException
- if a RecordSet has already been startedWriteResult finishRecordSet() throws IOException
IOException
- if unable to write to the given OutputStreamIllegalStateException
- if a RecordSet has not been started via beginRecordSet()
Copyright © 2020 Apache NiFi Project. All rights reserved.