JackieTien97 opened a new pull request, #343:
URL: https://github.com/apache/tsfile/pull/343
For the reason that dbName in IoTDB should be at least two, so we add three
implementation classes in this pr:
### `TwoLevelDBExtractor`
used for DeviceId whose db level is 2, like `root.db`. There exist three
cases for two-level-db tree-style DeviceId:
1. database is also DeviceId, like `root.db` whose DeviceId is `{root, db}`,
no id column in such case
2. device has only one level excluding the db level, like `root.db.d1` whose
DeviceId is `{root.db, d1}`, only one id column in segment 1
3. device has more than one level excluding the db level, like
`root.db.a.d1` whose DeviceId is `{root.db.a, d1}`, id column start from
segment 0
### `ThreeLevelDBExtractor`
used for DeviceId whose db level is 3, like `root.a.db` There exist two
cases for three-level-db tree-style DeviceId:
1. database is also DeviceId, like `root.a.db` whose DeviceId is `{root.a,
db}`, no id column in such case
2. device has more than zero level excluding the db level, like
`root.a.db.d1` whose DeviceId is `{root.a.db, d1}`, id column start from
segment 1
### `FourOrHigherLevelDBExtractor`
used for DeviceId whose db level is 4 or higher, like `root.a.b.db` There
only exist one case for four-or-higher-level-db tree-style DeviceId, first
segment will be the first three level of db, so id column index starting from
`db_level - 2`:
1. like `root.a.b.db` whose DeviceId is `{root.a.b, db}`, no id column in
such case, also call say that id column starting from 2(not existing)
2. like `root.a.b.db.d1` whose DeviceId is` {root.a.b, db, d1}`, id column
starting from 2
3. like `root.a.b.db.c.d1` whose DeviceId is `{root.a.b, db, c, d1}`, id
column starting from 3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]