public Schema getSchema(Configuration conf) throws IOException {
Schema result = new Schema();
for (Iterator<TableExpr> it = composite.iterator(); it.hasNext();) {
TableExpr e = it.next();
try {
result.unionSchema(e.getSchema(conf));
} catch (ParseException exc) {
throw new IOException("Schema parsing failed :"+exc.getMessage());
}
}
return result;