Class SqlGateWayContorller
java.lang.Object
cn.sliew.flinkful.rest.client.controller.SqlGateWayContorller
@RestController
@RequestMapping("/flinkful/sql/gateway")
public class SqlGateWayContorller
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody>cancelOperation(String sessionHandle, String operationHandle) CompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody>closeOperation(String sessionHandle, String operationHandle) CompletableFuture<org.apache.flink.table.gateway.rest.message.session.CloseSessionResponseBody>closeSession(String sessionHandle) CompletableFuture<org.apache.flink.table.gateway.rest.message.statement.ExecuteStatementResponseBody>executeStatement(String sessionHandle, @Valid ExecuteStatementParam param) CompletableFuture<org.apache.flink.table.gateway.rest.message.util.GetApiVersionResponseBody>CompletableFuture<org.apache.flink.table.gateway.rest.message.util.GetInfoResponseBody>getInfo()CompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody>getOperationStatus(String sessionHandle, String operationHandle) CompletableFuture<org.apache.flink.table.gateway.rest.message.session.GetSessionConfigResponseBody>getSessionConfig(String sessionHandle) CompletableFuture<org.apache.flink.table.gateway.rest.message.statement.FetchResultsResponseBody>getStatementResult(String sessionHandle, String operationHandle, String token, String rowFormat) CompletableFuture<org.apache.flink.table.gateway.rest.message.session.OpenSessionResponseBody>openSession(@Valid OpenSessionParam param)
-
Constructor Details
-
SqlGateWayContorller
public SqlGateWayContorller()
-
-
Method Details
-
getApiVersion
@GetMapping("api_versions") public CompletableFuture<org.apache.flink.table.gateway.rest.message.util.GetApiVersionResponseBody> getApiVersion() throws IOException- Throws:
IOException
-
getInfo
@GetMapping("info") public CompletableFuture<org.apache.flink.table.gateway.rest.message.util.GetInfoResponseBody> getInfo() throws IOException- Throws:
IOException
-
openSession
@PostMapping public CompletableFuture<org.apache.flink.table.gateway.rest.message.session.OpenSessionResponseBody> openSession(@Valid @Valid OpenSessionParam param) throws IOException - Throws:
IOException
-
getSessionConfig
@GetMapping("{sessionHandle}") public CompletableFuture<org.apache.flink.table.gateway.rest.message.session.GetSessionConfigResponseBody> getSessionConfig(@PathVariable("sessionHandle") String sessionHandle) throws IOException - Throws:
IOException
-
heartbeat
@PostMapping("{sessionHandle}/heartbeat") public CompletableFuture<EmptyResponseBody> heartbeat(@PathVariable("sessionHandle") String sessionHandle) throws IOException - Throws:
IOException
-
closeSession
@DeleteMapping("{sessionHandle}") public CompletableFuture<org.apache.flink.table.gateway.rest.message.session.CloseSessionResponseBody> closeSession(@PathVariable("sessionHandle") String sessionHandle) throws IOException - Throws:
IOException
-
executeStatement
@PostMapping("{sessionHandle}/statements") public CompletableFuture<org.apache.flink.table.gateway.rest.message.statement.ExecuteStatementResponseBody> executeStatement(@PathVariable("sessionHandle") String sessionHandle, @Valid @RequestBody @Valid ExecuteStatementParam param) throws IOException - Throws:
IOException
-
getStatementResult
@GetMapping("{sessionHandle}/operations/{operationHandle}/result/{token}") public CompletableFuture<org.apache.flink.table.gateway.rest.message.statement.FetchResultsResponseBody> getStatementResult(@PathVariable("sessionHandle") String sessionHandle, @PathVariable("operationHandle") String operationHandle, @PathVariable("token") String token, @RequestParam("rowFormat") String rowFormat) throws IOException - Throws:
IOException
-
getOperationStatus
@GetMapping("{sessionHandle}/operations/{operationHandle}/status") public CompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody> getOperationStatus(@PathVariable("sessionHandle") String sessionHandle, @PathVariable("operationHandle") String operationHandle) throws IOException - Throws:
IOException
-
cancelOperation
@PostMapping("{sessionHandle}/operations/{operationHandle}/cancel") public CompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody> cancelOperation(@PathVariable("sessionHandle") String sessionHandle, @PathVariable("operationHandle") String operationHandle) throws IOException - Throws:
IOException
-
closeOperation
@PostMapping("{sessionHandle}/operations/{operationHandle}/close") public CompletableFuture<org.apache.flink.table.gateway.rest.message.operation.OperationStatusResponseBody> closeOperation(@PathVariable("sessionHandle") String sessionHandle, @PathVariable("operationHandle") String operationHandle) throws IOException - Throws:
IOException
-