connectionUtils/src/main/java/com/ge/research/semtk/resultSet/TableResultSet.java
public static TableResultSet merge(ArrayList<TableResultSet> tableResultSets) throws Exception {	
		ArrayList<Table> tables = new ArrayList<Table>();		
		for(TableResultSet tableResultSet : tableResultSets){
			tables.add(tableResultSet.getTable());	
		}
		Table mergedTable = Table.merge(tables);		
		TableResultSet ret = new TableResultSet(true);
		ret.addResults(mergedTable);
		return ret;
	}
/**
	 * Merge a set of TableResultSets into a single TableResultSet
	 * 
	 * (wanted to override an abstract method in GeneralResultSet, but cannot have static abstract method)
	 * TODO check for result set failures?
	 */
Merge a set of TableResultSets into a single TableResultSet


Merge a set of TableResultSets into a single TableResultSet
public static TableResultSet merge(ArrayList<TableResultSet> tableResultSets) throws Exception {	
		ArrayList<Table> tables = new ArrayList<Table>();		
		for(TableResultSet tableResultSet : tableResultSets){
			tables.add(tableResultSet.getTable());	
		}
		Table mergedTable = Table.merge(tables);		
		TableResultSet ret = new TableResultSet(true);
		ret.addResults(mergedTable);
		return ret;
	}
public static TableResultSet merge ( ArrayList < TableResultSet > tableResultSets ) throws Exception { ArrayList < Table > tables = new ArrayList < Table > ( ) ; for ( TableResultSet tableResultSet : tableResultSets ) { tables . add ( tableResultSet . getTable ( ) ) ; } Table mergedTable = Table . merge ( tables ) ; TableResultSet ret = new TableResultSet ( true ) ; ret . addResults ( mergedTable ) ; return ret ; }
Merge a set of TableResultSets into a single TableResultSet
Merge a set of TableResultSets into a single TableResultSet