TsFileResource 文件结构
每个数据文件 TsFile 在内存中对应一个对象 TsFileResource,主要包含以下信息
- 版本号
- 时间索引:将此 TsFile 中所有时间序列的路径 默认按照 (root - 倒数第二层)分组,每组为一个索引条目(包含:路径、起始时间、终止时间)
- Raft日志段:raft 中一个 TsFile 文件对应的 Raft 日志的起始和终止下标
- 墓碑文件路径:如果存在墓碑文件则记录
VERSION_NUMBER = 1 (1 byte) timeIndexType = 0 FileTimeIndex / 1 DeviceTimeIndex (1 byte) timeIndex (ITimeIndex)
maxPlanIndex (long) minPlanIndex (long) modFileName (String) |