You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Jialin Qiao <qi...@apache.org> on 2020/04/14 09:13:23 UTC

Add metaOffset in TsFileMetadata

Hi,

As described in [1], when we want to truncate all metadatas of a TsFile to
append data, we need to read all TimeseriesMetadatas in this file to find
the offset of the first ChunkMetadata.
If we add a meta offset to indicate this position in TsFileMetadata. This
would be easy. we could directly get the position of MetaMarder.SEPARATOR
and do truncate.

I submit a pr [2], please have a look.

[1] https://issues.apache.org/jira/browse/IOTDB-593
[2] https://github.com/apache/incubator-iotdb/pull/1047

Thanks,
—————————————————
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院