Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOTDB-6325] Support RegionScan for active metadata queries [BE Part One] #12539

Merged
merged 19 commits into from
May 23, 2024

Conversation

ycycse
Copy link
Member

@ycycse ycycse commented May 16, 2024

If we want to find the metaData which is activate during a period of time, we need to scan the raw data.
Current implementation of seriesScan may cause random access due to the access to one TSFile repeatedly. We could use file scan to eliminate this.
Region scan is the feature in IoTDB to support fileScan, this PR would support basic FileHandle for TsFile which support file-based scanning.

FileScanHandle corresponds to a TsFile and is used for related metadata operations and data scanning on the TsFile; ChunkHandle corresponds to specific chunk data, and we can obtain a batch of ChunkHandle for sequential scanning through the interface of FileScanHandle.

The relationship between the related classes is shown in the following diagram.TsFileResource is original implementation. Among red ones, DiskChunkHandle is used to access chunks on the disk, while MemChunkHandle is used to access data in the MemTable. Due to the possibility of partially flushed MemTables, UnclosedFileScanHandle will include both of these scenarios.

image

@JackieTien97 JackieTien97 merged commit 9a29af7 into apache:master May 23, 2024
57 checks passed
@ycycse ycycse deleted the showMetaBe branch May 23, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants