Class ExecutorImpl

    • Constructor Detail

      • ExecutorImpl

        public ExecutorImpl​(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
                            InetSocketAddress gatewayAddress,
                            String sessionId)
      • ExecutorImpl

        public ExecutorImpl​(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
                            InetSocketAddress gatewayAddress,
                            String sessionId,
                            org.apache.flink.table.gateway.rest.util.RowFormat rowFormat)
      • ExecutorImpl

        public ExecutorImpl​(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
                            URL gatewayUrl,
                            String sessionId)
    • Method Detail

      • configureSession

        public void configureSession​(String statement)
        Description copied from interface: Executor
        Configures session with statement.
        Specified by:
        configureSession in interface Executor
        Parameters:
        statement - to initialize the session
      • getSessionConfig

        public org.apache.flink.configuration.ReadableConfig getSessionConfig()
        Description copied from interface: Executor
        Get the configuration of the session.
        Specified by:
        getSessionConfig in interface Executor
        Returns:
        the session configuration.
      • getSessionConfigMap

        public Map<String,​String> getSessionConfigMap()
        Description copied from interface: Executor
        Get the map configuration of the session.
        Specified by:
        getSessionConfigMap in interface Executor
        Returns:
        the map session configuration.
      • executeStatement

        public StatementResult executeStatement​(String statement)
        Description copied from interface: Executor
        Execute statement.
        Specified by:
        executeStatement in interface Executor
        Parameters:
        statement - to execute
        Returns:
        Iterable results of the statement
      • completeStatement

        public List<String> completeStatement​(String statement,
                                              int position)
        Description copied from interface: Executor
        Returns a list of completion hints for the given statement at the given position.
        Specified by:
        completeStatement in interface Executor
        Parameters:
        statement - Partial or slightly incorrect SQL statement
        position - cursor position
        Returns:
        completion hints that fit at the current cursor position
      • deployScript

        public String deployScript​(@Nullable
                                   String script,
                                   @Nullable
                                   URI uri)
        Description copied from interface: Executor
        Deploy script in application mode.
        Specified by:
        deployScript in interface Executor
        Parameters:
        script - content to run in application mode
        uri - uri to the script
        Returns:
        the cluster id
      • getSessionHandle

        @VisibleForTesting
        public org.apache.flink.table.gateway.api.session.SessionHandle getSessionHandle()