Jobs
Batch Jobs
The BatchJob Class
@Slf4j
public class CrytpoBatchJob extends BatchJob { //1.
//2.
@Override
public IngestionResult ingest(IngestionRequest request) throws NoResultsFoundException {
//... Logic to fetch
//Result Set
DataResult dr = Sql.query("jdbc://host/db", "select * from blah");
dr = Transform.with(dr)
.onRow(
map((dr)=> {}),
pipe((dr)= {})
)
.chunk(500)
.to(
csv(
Options...
),
compress(
Options...
)
)
Store.save("s3://bucket/asdf", drCsv);
Store.save("kafka://host/some_topic", ...);
Store.save("https://storage.googleapis.com/bucket", ...);
//3.
return newIngestionResult(
newOffsetKey(OffsetEntry.of("updatedAt", "2021-01-01T01:02:33.312Z")))
.build();
}
}IngestionRequest
Ingestion Result
Schedule
StreamingJob
Last updated