sparqlGraphLibrary/src/main/java/com/ge/research/semtk/edc/client/HiveClient.java
public TableOrJobIdResultSet executeStat(String table, List<ColumnOperation> columnOperations) throws Exception{

		parametersJSON.put("table", table);
		JSONArray list = new JSONArray();
		for (ColumnOperation co : columnOperations) {
			JSONObject jsonPair = new JSONObject ();
			jsonPair.put("column", co.column);
			jsonPair.put("operation", co.operation);
			list.add (jsonPair);
		}
		parametersJSON.put("columnOperations", list);

		JSONObject resultJSON = (JSONObject)super.execute();	

		TableOrJobIdResultSet retval = new TableOrJobIdResultSet();
		retval.readJson(resultJSON);
		return retval;
	}
/**
	 * Execute a call to the stat endpoint
	 */
Execute a call to the stat endpoint
Execute a call to the stat endpoint
public TableOrJobIdResultSet executeStat(String table, List<ColumnOperation> columnOperations) throws Exception{
		parametersJSON.put("table", table);
		JSONArray list = new JSONArray();
		for (ColumnOperation co : columnOperations) {
			JSONObject jsonPair = new JSONObject ();
			jsonPair.put("column", co.column);
			jsonPair.put("operation", co.operation);
			list.add (jsonPair);
		}
		parametersJSON.put("columnOperations", list);
		JSONObject resultJSON = (JSONObject)super.execute();	
		TableOrJobIdResultSet retval = new TableOrJobIdResultSet();
		retval.readJson(resultJSON);
		return retval;
	}
public TableOrJobIdResultSet executeStat ( String table , List < ColumnOperation > columnOperations ) throws Exception { parametersJSON . put ( "table" , table ) ; JSONArray list = new JSONArray ( ) ; for ( ColumnOperation co : columnOperations ) { JSONObject jsonPair = new JSONObject ( ) ; jsonPair . put ( "column" , co . column ) ; jsonPair . put ( "operation" , co . operation ) ; list . add ( jsonPair ) ; } parametersJSON . put ( "columnOperations" , list ) ; JSONObject resultJSON = ( JSONObject ) super . execute ( ) ; TableOrJobIdResultSet retval = new TableOrJobIdResultSet ( ) ; retval . readJson ( resultJSON ) ; return retval ; }
Execute a call to the stat endpoint
Execute a call to the stat endpoint