(下文链接需要map到conflunece对应的路径)
系统文件目录 data/system
data/system/schema/mlog.bin (元数据日志)
http://iotdb.apache.org/SystemDesign/SchemaManager/SchemaManager.html#log-management-of-metadata
SchemaFile设计
- data/system/schema/system.properties (系统不可变参数)
partition_interval=9223372036854775807
...
...
timestamp_precision=ms
...
...
tsfile_storage_fs=LOCAL
...
...
enable_partition=false
...
...
max_degree_of_index_node=256
...
...
tag_attribute_total_size=700
...
...
iotdb_version=UNKNOWN
data/system/schema/tlog.txt (标签、属性文件)
http://iotdb.apache.org/SystemDesign/SchemaManager/SchemaManager.html#tlog
data/system/storage_groups/{sg_name}/{vsg_id}/{partition}/Version-xxx (每个分区的版本控制文件,无内容)
data/system/storage_groups/upgrade/Version-xxx (升级过程的版本控制文件)
data/system/upgrade/upgrade.txt (升级日志文件)
格式:
格式为:oldTsFilePath,UpgradeCheckStatus
其中 UpgradeCheckStatus
...
表示文件的升级状态
- BEGIN_UPGRADE_FILE(1): 待升级的文件
- AFTER_UPGRADE_FILE(2): 升级后的文件已经封口
- UPGRADE_SUCCESS(3): 完成了旧文件删除,移动新文件
示例:
xxx/root.group_11/upgrade/1587634378188-101-0.tsfile,1 xxx/root.group_11/upgrade/1587634378188-101-0.tsfile,2 xxx/root.group_11/upgrade/1587634378188-101-0.tsfile,3 ...
- data/system/users/{user_name}.profile (用户信息)
1. username (UTF-8) 2. password (UTF-8) 3. privilegeNumber n (int) 4. n privileges (Privelege) 5. rolNumber k (int) 6. k role names (UTF-8) 7. UseWaterMarkFlag (Boolean)
- data/system/roles/<UserID.profile> (
...
- 角色信息)
1. roleName (UTF-8) 2. privilegeNumber n (int) 3. n privileges (Privilege)
其中 Privilege 格式格式为:
1. bindingPath (UTF-8) 2. privilegeNumber n (int) 3. n privilegeOrdinals (int)
...
http://iotdb.apache.org/SystemDesign/TsFile/Format.html#_1-2-tsfile-overview
TsFile 文件格式#2TsFile%E7%9A%84%E6%80%BB%E8%A7%88%E5%9B%BE
- data/data/sequence/{storage_group}/{virtual_storage_group_id}/{partition}/{tsfile}.resource (对应TsFile的设备时间索引)
...
http://iotdb.apache.org/SystemDesign/DataQuery/QueryFundamentals.html#query-with-modifications
Query Fundamentals#QuerywithModifications
源文件 文件path 目标文件 文件path device,offset (已经合并的设备和目标文件完整的ChunkGroup的offset)
...