throw new IllegalArgumentException("Partition field not contained in input schema: " + partitionField);
}
fields.add(field);
}
Field[] partitionByFields = fields.toArray(new Field[0]);
partitionedTables.add(new Table(new TableInput(inputFormat, new HashMap<String, String>(), schema, new IdentityRecordProcessor(), input), new TableSpec(schema, partitionByFields, new FieldIndex[] { new FieldIndex(partitionByFields) },null, null, null, null, null)));
TablespaceSpec tablespace = new TablespaceSpec(partitionedTables, new ArrayList<Table>(), nPartitions, null, SploutEngine.getDefault());
return tablespace;
}