for (TaskInput input : job.getInput())
{
File f = new File(user_dir, input.getName());
int num_workers = WorkerManager.getInstance().getWorkerNum();
num_workers = num_workers > 0 ? num_workers : 10;
Object[] data = frag.fragment(f, num_workers);
t.addInput(new TaskInput(input.getName(), data[0].toString().getBytes()));
}
tasks.add(t);
return tasks;
}