Class QueryResources
java.lang.Object
org.apache.drill.exec.server.rest.QueryResources
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Model class for Query pagestatic class
Model class for Results page -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.jersey.server.mvc.Viewable
getQuery()
org.glassfish.jersey.server.mvc.Viewable
submitQuery
(String query, String queryType, String autoLimit, String userName, String defaultSchema, javax.ws.rs.core.Form form) javax.ws.rs.core.StreamingOutput
submitQueryJSON
(QueryWrapper query)
-
Constructor Details
-
QueryResources
public QueryResources()
-
-
Method Details
-
getQuery
@GET @Path("/query") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getQuery() -
submitQueryJSON
@POST @Path("/query.json") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.StreamingOutput submitQueryJSON(QueryWrapper query) throws Exception - Throws:
Exception
-
submitQuery
@POST @Path("/query") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable submitQuery(@FormParam("query") String query, @FormParam("queryType") String queryType, @FormParam("autoLimit") String autoLimit, @FormParam("userName") String userName, @FormParam("defaultSchema") String defaultSchema, javax.ws.rs.core.Form form) throws Exception - Throws:
Exception
-