hiveService/src/main/java/com/ge/research/semtk/edc/services/hive/HiveServiceRestController.java
@CrossOrigin
	@RequestMapping(value="/count", method= RequestMethod.POST)
	public JSONObject count(@RequestBody HiveServiceCountRequestBody requestBody){
		String col = requestBody.column;
		String query = "select " + col + ", count(" + col + ") as " + col + "_count from " + requestBody.table + " group by " + col;
		return runQuery (requestBody, query);
	}
/**
	 * Execute count of each unique element on a specific column in Hive
	 */
Execute count of each unique element on a specific column in Hive
Execute count of each unique element on a specific column in Hive
@CrossOrigin
	@RequestMapping(value="/count", method= RequestMethod.POST)
	public JSONObject count(@RequestBody HiveServiceCountRequestBody requestBody){
		String col = requestBody.column;
		String query = "select " + col + ", count(" + col + ") as " + col + "_count from " + requestBody.table + " group by " + col;
		return runQuery (requestBody, query);
	}
@ CrossOrigin @ RequestMapping ( value = "/count" , method = RequestMethod . POST ) public JSONObject count ( @ RequestBody HiveServiceCountRequestBody requestBody ) { String col = requestBody . column ; String query = "select " + col + ", count(" + col + ") as " + col + "_count from " + requestBody . table + " group by " + col ; return runQuery ( requestBody , query ) ; }
Execute count of each unique element on a specific column in Hive
Execute count of each unique element on a specific column in Hive