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 Details

    • Operation

      public Operation(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, Callable<ResultFetcher> resultSupplier)
  • Method Details

    • run

      public void run()
    • cancel

      public void cancel()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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()
    • awaitTermination

      public void awaitTermination() throws Exception
      Throws:
      Exception