hiveService/src/main/java/com/ge/research/semtk/edc/services/hive/HiveServiceRestController.java
@CrossOrigin
	@RequestMapping(value="/randomSampling", method= RequestMethod.POST)
	public JSONObject randomSampling(@RequestBody HiveServiceRandomSamplingRequestBody requestBody){
		String query = "select * from " + requestBody.table + " distribute by rand() sort by rand() limit " + requestBody.numRows;
		return runQuery (requestBody, query);
	}
/**
	 * Return random sampling of rows from a specific table in Hive
	 */
Return random sampling of rows from a specific table in Hive
Return random sampling of rows from a specific table in Hive
@CrossOrigin
	@RequestMapping(value="/randomSampling", method= RequestMethod.POST)
	public JSONObject randomSampling(@RequestBody HiveServiceRandomSamplingRequestBody requestBody){
		String query = "select * from " + requestBody.table + " distribute by rand() sort by rand() limit " + requestBody.numRows;
		return runQuery (requestBody, query);
	}
@ CrossOrigin @ RequestMapping ( value = "/randomSampling" , method = RequestMethod . POST ) public JSONObject randomSampling ( @ RequestBody HiveServiceRandomSamplingRequestBody requestBody ) { String query = "select * from " + requestBody . table + " distribute by rand() sort by rand() limit " + requestBody . numRows ; return runQuery ( requestBody , query ) ; }
Return random sampling of rows from a specific table in Hive
Return random sampling of rows from a specific table in Hive