[
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 opened.
*
* <p>Note that this does not mean that the file has been created in the file
system. It is
* only created logically and the actual file will be generated after it is
committed.
*
* @param bucket The bucket of newly opened file.
* @param newPath The path of newly opened file.
*/
void openPartFile(Bucket<IN, BucketID> bucket, Path newPath);
}
{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}}
FLINK-19345 depends on this to compact files in downstream operator
> 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 opened.
> *
> * <p>Note that this does not mean that the file has been created in the file
> system. It is
> * only created logically and the actual file will be generated after it is
> committed.
> *
> * @param bucket The bucket of newly opened file.
> * @param newPath The path of newly opened file.
> */
> void openPartFile(Bucket<IN, BucketID> bucket, Path newPath);
> }
> {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)