assert definition != null;
assert counter != null;
assert fragment != null;
DirectDataSourceRepository repo = getDataSourceRepository(context);
DirectDataSource ds = repo.getRelatedDataSource(containerPath);
return ds.openInput(definition, fragment, counter);
}
private static DirectDataSourceRepository getDataSourceRepository(JobContext context) {
assert context != null;
return HadoopDataSourceUtil.loadRepository(context.getConfiguration());