Interface Executor

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ExecutorImpl

public interface Executor extends Closeable
A gateway for communicating with Flink and other external systems.
  • Method Details

    • create

      static Executor create(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext, InetSocketAddress address, String sessionId)
      Create an Executor to execute commands.
    • create

      static Executor create(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext, InetSocketAddress address, String sessionId, org.apache.flink.table.gateway.rest.util.RowFormat rowFormat)
    • create

      static Executor create(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext, URL address, String sessionId)
    • configureSession

      void configureSession(String statement)
      Configures session with statement.
      Parameters:
      statement - to initialize the session
    • getSessionConfig

      org.apache.flink.configuration.ReadableConfig getSessionConfig()
      Get the configuration of the session.
      Returns:
      the session configuration.
    • getSessionConfigMap

      Map<String,String> getSessionConfigMap()
      Get the map configuration of the session.
      Returns:
      the map session configuration.
    • executeStatement

      StatementResult executeStatement(String statement)
      Execute statement.
      Parameters:
      statement - to execute
      Returns:
      Iterable results of the statement
    • completeStatement

      List<String> completeStatement(String statement, int position)
      Returns a list of completion hints for the given statement at the given position.
      Parameters:
      statement - Partial or slightly incorrect SQL statement
      position - cursor position
      Returns:
      completion hints that fit at the current cursor position
    • deployScript

      String deployScript(@Nullable String script, @Nullable URI uri)
      Deploy script in application mode.
      Parameters:
      script - content to run in application mode
      uri - uri to the script
      Returns:
      the cluster id
    • close

      void close()
      Close the Executor and process all exceptions.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable