for (POStore st : mapStores) {
storeLocations.add(st);
StoreFuncInterface sFunc = st.getStoreFunc();
sFunc.setStoreLocation(st.getSFile().getFileName(), nwJob);
if (sFunc instanceof OverwritableStoreFunc) {
OverwritableStoreFunc osf = (OverwritableStoreFunc) sFunc;
if (osf.shouldOverwrite()) {
osf.cleanupOutput(st, nwJob);
}
}
}
for (POStore st : reduceStores) {
storeLocations.add(st);
StoreFuncInterface sFunc = st.getStoreFunc();
sFunc.setStoreLocation(st.getSFile().getFileName(), nwJob);
if (sFunc instanceof OverwritableStoreFunc) {
OverwritableStoreFunc osf = (OverwritableStoreFunc) sFunc;
if (osf.shouldOverwrite()) {
osf.cleanupOutput(st, nwJob);
}
}
}
// the OutputFormat we report to Hadoop is always PigOutputFormat which