if (loader instanceof SampleLoader) {
Long iSize = FileLocalizer.getSize(spec.getFileName(), pigContext.getProperties());
UDFContext udfc = UDFContext.getUDFContext();
Properties p = udfc.getUDFProperties(SampleLoader.class);
p.setProperty("pig.input." + i + ".size", Long.toString(iSize));
udfc.serialize(job);
}
Slice[] pigs = spec.getSlicer().slice(store, spec.getFileName());
for (Slice split : pigs) {
splits.add(new SliceWrapper(split, pigContext.getExecType(), i, fs, inpTargets.get(i)));