@Override
/* spawn a cpimport process for each input file */
public boolean next(NullWritable arg0, NullWritable arg1) throws IOException
{
InfiniDBConfiguration dbConf = new InfiniDBConfiguration(job);
String schemaName = dbConf.getOutputSchemaName();
String tableName = (filename.substring(filename.lastIndexOf('/')+1, filename.length()));
tableName = tableName.substring(0, tableName.lastIndexOf('.'));
String output = job.get("mapred.output.dir");
if (unread)
{
try
{
StringBuilder loadCmdStr = new StringBuilder();
loadCmdStr.append(dbConf.getInfiniDBHome());
loadCmdStr.append("/bin/");
loadCmdStr.append("infinidoop_load.sh ");
loadCmdStr.append(filename);
loadCmdStr.append(" ");
loadCmdStr.append(schemaName);