return (mode == TapMode.SINK) ? 0 : store.mostRecentVersion();
}
@Override
public boolean commitResource(JobConf conf) throws IOException {
VersionedStore store = new VersionedStore(FileSystem.get(conf), getOutputDirectory());
if (newVersionPath != null) {
store.succeedVersion(newVersionPath);
CascadingUtils.markSuccessfulOutputDir(new Path(newVersionPath), conf);
newVersionPath = null;
store.cleanup(getVersionsToKeep());
}
return true;
}