@PostMapping(path = " {
    """
	Execute a GemFire query
	@param query the OQL to execute
	@param limit the results count limit
	@return the JSON records
	@throws Exception
    """limit}",produces = "application/json")
	public String queryLimit(@RequestBody String query, @PathVariable int limit)
	throws Exception
	{
		if(query == null || query.length() ==0)
			return null;
		
		  try {

			  query = this.appendLimit(query, limit);
			  
			  Logger logger = LogManager.getLogger(getClass());
			  logger.info("QueryService: START query "+query);
	            Collection<Object> results = querierService.query(query);
	            logger.info("QueryService: END query "+query);

	            if(results == null)
	            	return null;
	            
	            return gson.toJson(results, Collection.class);
	        }
	        catch(Exception e)
	        {
	            e.printStackTrace();
	            throw e;
	        }
	}
@PostMapping(path = "{limit}",produces = "application/json")
	public String queryLimit(@RequestBody String query, @PathVariable int limit)
	throws Exception
	{
		if(query == null || query.length() ==0)
			return null;
		
		  try {

			  query = this.appendLimit(query, limit);
			  
			  Logger logger = LogManager.getLogger(getClass());
			  logger.info("QueryService: START query "+query);
	            Collection<Object> results = querierService.query(query);
	            logger.info("QueryService: END query "+query);

	            if(results == null)
	            	return null;
	            
	            return gson.toJson(results, Collection.class);
	        }
	        catch(Exception e)
	        {
	            e.printStackTrace();
	            throw e;
	        }
	}
@ PostMapping ( path = "{limit}" , produces = "application/json" ) public String queryLimit ( @ RequestBody String query , @ PathVariable int limit ) throws Exception { if ( query == null || query . length ( ) == 0 ) return null ; try { query = this . appendLimit ( query , limit ) ; Logger logger = LogManager . getLogger ( getClass ( ) ) ; logger . info ( "QueryService: START query " + query ) ; Collection < Object > results = querierService . query ( query ) ; logger . info ( "QueryService: END query " + query ) ; if ( results == null ) return null ; return gson . toJson ( results , Collection . class ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw e ; } }
Execute a GemFire query
@param query the OQL to execute
@param limit the results count limit
@return the JSON records
@throws Exception
Execute a GemFire query