public ModelInput<T> createInput(
Class<? extends T> dataType,
FileSystem fileSystem, Path path,
long offset, long fragmentSize,
Counter counter) throws IOException, InterruptedException {
DataModelMapping driverConf = new DataModelMapping();
OrcFormatConfiguration conf = getFormatConfiguration();
if (LOG.isDebugEnabled()) {
LOG.debug(MessageFormat.format(
"ORCFile input ({0}): {1}",
path,
conf));
}
if (conf.getFieldMappingStrategy() != null) {
driverConf.setFieldMappingStrategy(conf.getFieldMappingStrategy());
}
if (conf.getOnMissingSource() != null) {
driverConf.setOnMissingSource(conf.getOnMissingSource());
}
if (conf.getOnMissingTarget() != null) {
driverConf.setOnMissingTarget(conf.getOnMissingTarget());
}
if (conf.getOnIncompatibleType() != null) {
driverConf.setOnIncompatibleType(conf.getOnIncompatibleType());
}
return new OrcFileInput<T>(
getDataModelDescriptor(), driverConf,
fileSystem, path,
offset, fragmentSize, counter);