Hi Andrew,
My initial idea was something like.
import java.io.OutputStream;
import java.sql.ResultSet;
public interface ResultSetConverter {
public long convertToAvroStream(final ResultSet rs, final OutputStream
outStream);
}
and implementation for example
public class ToJSONConverter implements ResultSetConverter {
public long convertToAvroStream(ResultSet rs, OutputStream outStream) {
// here to JSON stream converting logic
return 0;
}
}
And property OutputConverter should have value:
ToJSONConverter.class
And ToJSONConverter class should be in classpath.
No control service is needed.
Thanks
Toivo
--
View this message in context:
http://apache-nifi-developer-list.39713.n7.nabble.com/ExecuteSql-output-formats-tp13265p13267.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.