You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Caizhi Weng (Jira)" <ji...@apache.org> on 2022/09/14 01:35:00 UTC

[jira] [Created] (FLINK-29291) Change DataFileWriter into a factory to create writers

Caizhi Weng created FLINK-29291:
-----------------------------------

             Summary: Change DataFileWriter into a factory to create writers
                 Key: FLINK-29291
                 URL: https://issues.apache.org/jira/browse/FLINK-29291
             Project: Flink
          Issue Type: Sub-task
          Components: Table Store
            Reporter: Caizhi Weng
             Fix For: table-store-0.3.0


Currently {{DataFileWriter}} exposes {{write}} method for data files and extra files.

However, as the number of patterns to write files is increasing (for example, we'd like to write some records into a data file, then write some other records into an extra files when producing changelogs from full compaction) we'll have to keep adding methods to {{DataFileWriter}} if we keep the current implementation.

We'd like to refactor {{DataFileWriter}} into a factory to create writers, so that the users of writers can write however they like.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)