public interface SqlWriter
| Modifier and Type | Method and Description |
|---|---|
default Map<String,String> |
getAttributesToAdd()
Returns a map of attribute key/value pairs to be added to any outgoing flow file(s).
|
String |
getMimeType()
Returns the MIME type of the output format.
|
default void |
updateCounters(ProcessSession session)
Updates any session counters as a result of processing result sets.
|
void |
writeEmptyResultSet(OutputStream outputStream,
ComponentLog logger)
Writes an empty result set to the output stream.
|
long |
writeResultSet(ResultSet resultSet,
OutputStream outputStream,
ComponentLog logger,
JdbcCommon.ResultSetRowCallback callback)
Writes the given result set out to the given output stream, possibly applying a callback as each row is processed.
|
long writeResultSet(ResultSet resultSet, OutputStream outputStream, ComponentLog logger, JdbcCommon.ResultSetRowCallback callback) throws Exception
resultSet - the ResultSet to be writtenoutputStream - the OutputStream to write the result set tologger - a common logger that can be used to log messages during writecallback - a MaxValueResultSetRowCollector that may be called as each row in the ResultSet is processedException - if any errors occur during the writing of the result set to the output streamdefault Map<String,String> getAttributesToAdd()
default void updateCounters(ProcessSession session)
session - the session upon which to update countersvoid writeEmptyResultSet(OutputStream outputStream, ComponentLog logger) throws IOException
outputStream - the OutputStream to write the empty result set tologger - a common logger that can be used to log messages during writeIOException - if any errors occur during the writing of an empty result set to the output streamString getMimeType()
Copyright © 2023 Apache NiFi Project. All rights reserved.