lqjacklee created FLINK-23103:
---------------------------------

             Summary: Provide Inteceptor for connector
                 Key: FLINK-23103
                 URL: https://issues.apache.org/jira/browse/FLINK-23103
             Project: Flink
          Issue Type: New Feature
          Components: API / Core
    Affects Versions: 1.14.0
            Reporter: lqjacklee
             Fix For: 1.14.0


In order to provide the extension for 
org.apache.flink.api.common.io.InputFormat/org.apache.flink.api.common.io.OutputFormat/.
 

we can inject the log/metrics/.. to inject Interceptors to 
SourceFunction/SinkFunction

{code:java}
/**
*
**/
public interface Interceptor extends Closeable {

     void init(Configuration config);

     /**the method will be invoked before user function */
     void pre(Context context);

     /**the method will be invoked after user function*/
     void post(Context context);

     /**
      *  the runtime context for the interceptor
      **/
     interface Context extends Map<String, Object>{
     }

}
{code}

Once 




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to