use of org.apache.hudi.utils.source.ContinuousFileSource in project hudi by apache.
the class ContinuousFileSourceFactory method createDynamicTableSource.
@Override
public DynamicTableSource createDynamicTableSource(Context context) {
FactoryUtil.TableFactoryHelper helper = FactoryUtil.createTableFactoryHelper(this, context);
helper.validate();
Configuration conf = (Configuration) helper.getOptions();
Path path = new Path(conf.getOptional(FlinkOptions.PATH).orElseThrow(() -> new ValidationException("Option [path] should be not empty.")));
return new ContinuousFileSource(context.getCatalogTable().getResolvedSchema(), path, conf);
}
Aggregations