connectionUtils/src/main/java/com/ge/research/semtk/resultSet/Table.java
public String toCSVString(int maxRows) throws IOException{
		
		if(this.getColumnNames().length == 0){
			return "";
		}
		
		StringBuffer buf = new StringBuffer();
		
		// get CSV for column names	
		ArrayList<String> headers = new ArrayList<String>( Arrays.asList( this.getColumnNames() ) ); // gets col names in order
		buf.append(Utility.getCSVString(headers));
		buf.append("\n");

		// get CSV for data rows
		for(int i = 0; i < this.getNumRows() && i != maxRows; i++){	
			buf.append(getRowAsCSVString(i));			
			buf.append("\n");
		}		
		
		return buf.toString();
	}
/**
	 * Create a CSV string containing the table rows and columns.
	 */
Create a CSV string containing the table rows and columns.
Create a CSV string containing the table rows and columns .
public String toCSVString(int maxRows) throws IOException{
		if(this.getColumnNames().length == 0){
			return "";
		}
		StringBuffer buf = new StringBuffer();
		ArrayList<String> headers = new ArrayList<String>( Arrays.asList( this.getColumnNames() ) ); 
		buf.append(Utility.getCSVString(headers));
		buf.append("\n");
		for(int i = 0; i < this.getNumRows() && i != maxRows; i++){	
			buf.append(getRowAsCSVString(i));			
			buf.append("\n");
		}		
		return buf.toString();
	}
public String toCSVString ( int maxRows ) throws IOException { if ( this . getColumnNames ( ) . length == 0 ) { return "" ; } StringBuffer buf = new StringBuffer ( ) ; ArrayList < String > headers = new ArrayList < String > ( Arrays . asList ( this . getColumnNames ( ) ) ) ; buf . append ( Utility . getCSVString ( headers ) ) ; buf . append ( "\n" ) ; for ( int i = 0 ; i < this . getNumRows ( ) && i != maxRows ; i ++ ) { buf . append ( getRowAsCSVString ( i ) ) ; buf . append ( "\n" ) ; } return buf . toString ( ) ; }
Create a CSV string containing the table rows and columns.
Create a CSV string containing the table rows and columns .
// get CSV for column names	 // gets col names in order // get CSV for data rows