[
https://issues.apache.org/jira/browse/FLINK-29297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Caizhi Weng closed FLINK-29297.
-------------------------------
> Group Table Store file writers into SingleFileWriter and RollingFileWriter
> --------------------------------------------------------------------------
>
> Key: FLINK-29297
> URL: https://issues.apache.org/jira/browse/FLINK-29297
> Project: Flink
> Issue Type: Sub-task
> Components: Table Store
> Reporter: Caizhi Weng
> Assignee: Caizhi Weng
> Priority: Major
> Labels: pull-request-available
> Fix For: table-store-0.3.0
>
>
> Currently we have two types of files to write:
> * Data files (LSM tree files), where a level 0 data file is a single file and
> a level >= 1 data file is a set of rolling files. Statistics for these files
> are needed for pruning when scanning.
> * Extra files (changelog files), just a list of records. No statistics are
> needed.
> However, current writers are all based on {{MetricFileWriter}}, which always
> produces statistics.
> We'd like to refactor the writers and group them into {{SingleFileWriter}}
> and {{RollingFileWriter}}. {{StatsCollectingSingleFileWriter}} should be a
> subclass of {{SingleFileWriter}} which additionally produces statistics, and
> data file writers should be a subclass of {{StatsCollectingSingleFileWriter}}
> or {{RollingFileWriter}} based on their level. For extra file writers,
> extending from {{SingleFileWriter}} is enough.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)