|| ld.getLFile() == null
|| ld.getLFile().getFileName() == null) {
return -1;
}
ResourceStatistics statistics;
try {
statistics = ((LoadMetadata) ld.getLoadFunc())
.getStatistics(ld.getLFile().getFileName(), job);
} catch (Exception e) {
log.warn("Couldn't get statistics from LoadFunc: " + ld.getLoadFunc(), e);
return -1;
}
if (statistics == null || statistics.getSizeInBytes() == null) {
return -1;
}
return statistics.getSizeInBytes();
}