Search in sources :

Example 1 with DeltaSync

use of org.apache.hudi.utilities.deltastreamer.DeltaSync in project hudi by apache.

the class HoodieDeltaStreamerWrapper method fetchSource.

public Pair<SchemaProvider, Pair<String, JavaRDD<HoodieRecord>>> fetchSource() throws Exception {
    DeltaSync service = deltaSyncService.get().getDeltaSync();
    service.refreshTimeline();
    return service.readFromSource(service.getCommitTimelineOpt());
}
Also used : DeltaSync(org.apache.hudi.utilities.deltastreamer.DeltaSync)

Aggregations

DeltaSync (org.apache.hudi.utilities.deltastreamer.DeltaSync)1