sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/ImportSpecHandler.java
private void colHashesFromJson() throws Exception{
		
		int colCount = this.importspec.getNumColumns();
		
		for (int i = 0; i < colCount; ++i) {
			
			String colId = this.importspec.getColId(i);   
			String colName = this.importspec.getColName(i).toLowerCase().trim();   
			this.colNameHash.put(colId, colName);
			
			if (colNameToIndexHash.containsKey(colName)) {
				throw new Exception("Duplicate column name in nodegroup import spec: " + colName);
			}
			this.colNameToIndexHash.put(colName, i);      // initialize colIndexHash with columns in the order provided
		}
	}
/**
	 * Populate the texts with the correct instances based on the importspec.
	 * @throws Exception 
	 */
Populate the texts with the correct instances based on the importspec.
@throws Exception
Populate the texts with the correct instances based on the importspec . @throws Exception
private void colHashesFromJson() throws Exception{
		int colCount = this.importspec.getNumColumns();
		for (int i = 0; i < colCount; ++i) {
			String colId = this.importspec.getColId(i);   
			String colName = this.importspec.getColName(i).toLowerCase().trim();   
			this.colNameHash.put(colId, colName);
			if (colNameToIndexHash.containsKey(colName)) {
				throw new Exception("Duplicate column name in nodegroup import spec: " + colName);
			}
			this.colNameToIndexHash.put(colName, i);      
		}
	}
private void colHashesFromJson ( ) throws Exception { int colCount = this . importspec . getNumColumns ( ) ; for ( int i = 0 ; i < colCount ; ++ i ) { String colId = this . importspec . getColId ( i ) ; String colName = this . importspec . getColName ( i ) . toLowerCase ( ) . trim ( ) ; this . colNameHash . put ( colId , colName ) ; if ( colNameToIndexHash . containsKey ( colName ) ) { throw new Exception ( "Duplicate column name in nodegroup import spec: " + colName ) ; } this . colNameToIndexHash . put ( colName , i ) ; } }
Populate the texts with the correct instances based on the importspec.
Populate the texts with the correct instances based on the importspec .
// initialize colIndexHash with columns in the order provided