Class OperationManager.Operation
- java.lang.Object
-
- org.apache.flink.table.gateway.service.operation.OperationManager.Operation
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- OperationManager
@VisibleForTesting public class OperationManager.Operation extends Object implements AutoCloseable
Operation to manage the execution, results and so on.
-
-
Constructor Summary
Constructors Constructor Description Operation(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, Callable<ResultFetcher> resultSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitTermination()voidcancel()voidclose()org.apache.flink.table.gateway.api.results.ResultSetfetchResults(long token, int maxRows)org.apache.flink.table.gateway.api.results.ResultSetfetchResults(org.apache.flink.table.gateway.api.results.FetchOrientation orientation, int maxRows)org.apache.flink.table.gateway.api.results.OperationInfogetOperationInfo()org.apache.flink.table.catalog.ResolvedSchemagetResultSchema()voidrun()
-
-
-
Constructor Detail
-
Operation
public Operation(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, Callable<ResultFetcher> resultSupplier)
-
-
Method Detail
-
run
public void run()
-
cancel
public void cancel()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
fetchResults
public org.apache.flink.table.gateway.api.results.ResultSet fetchResults(long token, int maxRows)
-
fetchResults
public org.apache.flink.table.gateway.api.results.ResultSet fetchResults(org.apache.flink.table.gateway.api.results.FetchOrientation orientation, int maxRows)
-
getResultSchema
public org.apache.flink.table.catalog.ResolvedSchema getResultSchema() throws Exception- Throws:
Exception
-
getOperationInfo
public org.apache.flink.table.gateway.api.results.OperationInfo getOperationInfo()
-
-