I am new to Hazelcast Jet and in my application I am using jdbc source, this source returning List of Map which I have to Sink in one of json file but when I use Sinks.json it create json directory how can I sink it to particular json file? For E.g.
BatchSource<List<Map<String, Object>> jdbcSource = Sources
.jdbc(() -> conn,
(con, parallelism, index) -> {
// query execution
}, r -> {
return this.mapResultSet1(r);
});
jdbcSource.writeTo(Sinks.json("/opt/test.json"));
Please let me know how can I sink my result to json file?