Class DefaultProcedureContext

java.lang.Object
org.apache.flink.table.procedure.DefaultProcedureContext
All Implemented Interfaces:
ProcedureContext

@Internal public class DefaultProcedureContext extends Object implements ProcedureContext
The default implementation for ProcedureContext.
  • Constructor Details

    • DefaultProcedureContext

      public DefaultProcedureContext(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment)
  • Method Details

    • getExecutionEnvironment

      public org.apache.flink.streaming.api.environment.StreamExecutionEnvironment getExecutionEnvironment()
      Description copied from interface: ProcedureContext
      Return the StreamExecutionEnvironment where the procedure is called. Flink will create a new StreamExecutionEnvironment based on the current configuration and pass it to the procedure for every procedure call. The procedure can modify the passed StreamExecutionEnvironment safely inside as it won't be leaked outside.
      Specified by:
      getExecutionEnvironment in interface ProcedureContext