Java Code Examples for org.apache.kylin.rest.request.SaveSqlRequest#getProject()
The following examples show how to use
org.apache.kylin.rest.request.SaveSqlRequest#getProject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryController.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
@RequestMapping(value = "/saved_queries", method = RequestMethod.POST, produces = { "application/json" }) @ResponseBody public void saveQuery(@RequestBody SaveSqlRequest sqlRequest) throws IOException { String creator = SecurityContextHolder.getContext().getAuthentication().getName(); Query newQuery = new Query(sqlRequest.getName(), sqlRequest.getProject(), sqlRequest.getSql(), sqlRequest.getDescription()); queryService.saveQuery(creator, newQuery); }
Example 2
Source File: QueryController.java From kylin with Apache License 2.0 | 5 votes |
@RequestMapping(value = "/saved_queries", method = RequestMethod.POST, produces = { "application/json" }) @ResponseBody public void saveQuery(@RequestBody SaveSqlRequest sqlRequest) throws IOException { String creator = SecurityContextHolder.getContext().getAuthentication().getName(); Query newQuery = new Query(sqlRequest.getName(), sqlRequest.getProject(), sqlRequest.getSql(), sqlRequest.getDescription()); queryService.saveQuery(creator, newQuery); }
Example 3
Source File: QueryController.java From Kylin with Apache License 2.0 | 5 votes |
@RequestMapping(value = "/saved_queries", method = RequestMethod.POST) @ResponseBody @Timed(name = "saveQuery") public void saveQuery(@RequestBody SaveSqlRequest sqlRequest) throws IOException { String creator = SecurityContextHolder.getContext().getAuthentication().getName(); Query newQuery = new Query(sqlRequest.getName(), sqlRequest.getProject(), sqlRequest.getSql(), sqlRequest.getDescription()); queryService.saveQuery(creator, newQuery); }