[ 
https://issues.apache.org/jira/browse/FLINK-19356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jingsong Lee updated FLINK-19356:
---------------------------------
    Description: 
The interface:
{code:java}
/**
 * Listener about the status of file.
 */
@Internal
public interface FileLifeCycleListener<IN, BucketID> {

   /**
    * Notifies a new file has been created.
    *
    * @param bucket The bucket of newly created file.
    * @param path The path of newly created file.
    */
   void fileCreated(Bucket<IN, BucketID> bucket, Path path);
}
{code}
Currently, only supports fileCreated. It can be set to Buckets like 
{{BucketLifeCycleListener}}

FLINK-19345 depends on this to compact files in downstream operator

  was:
The interface:
{code:java}
/**
 * Listener about the status of file.
 */
@Internal
public interface FileLifeCycleListener<IN, BucketID> {

   /**
    * Notifies a new file has been created.
    *
    * @param bucket The bucket of newly created file.
    * @param path The path of newly created file.
    */
   void fileCreated(Bucket<IN, BucketID> bucket, Path path);
}
{code}
Currently, only supports fileCreated. It can be set to Buckets like 
{{BucketLifeCycleListener}}


> Introduce FileLifeCycleListener to Buckets
> ------------------------------------------
>
>                 Key: FLINK-19356
>                 URL: https://issues.apache.org/jira/browse/FLINK-19356
>             Project: Flink
>          Issue Type: New Feature
>          Components: Runtime / Task
>            Reporter: Jingsong Lee
>            Priority: Major
>             Fix For: 1.12.0
>
>
> The interface:
> {code:java}
> /**
>  * Listener about the status of file.
>  */
> @Internal
> public interface FileLifeCycleListener<IN, BucketID> {
>    /**
>     * Notifies a new file has been created.
>     *
>     * @param bucket The bucket of newly created file.
>     * @param path The path of newly created file.
>     */
>    void fileCreated(Bucket<IN, BucketID> bucket, Path path);
> }
> {code}
> Currently, only supports fileCreated. It can be set to Buckets like 
> {{BucketLifeCycleListener}}
> FLINK-19345 depends on this to compact files in downstream operator



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

Reply via email to