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

Add catalog #52

Closed
wants to merge 1 commit into from
Closed

Add catalog #52

wants to merge 1 commit into from

Conversation

fansehep
Copy link
Collaborator

@fansehep fansehep commented Feb 1, 2024

Which issue does this PR solve? (这个 PR 解决了什么问题)

增加了 catalog

Retionable for this PR Change (这个 PR 做了什么改变)

@fansehep fansehep mentioned this pull request Feb 1, 2024
@fansehep fansehep requested a review from Tangruilin February 1, 2024 03:13
Comment on lines +28 to +34
pub struct CataLog {
id_table_map: HashMap<i32, Arc<TableInfo>>,
name_id_map: HashMap<String, i32>,
next_table_id: AtomicI32,
_id_index_map: HashMap<i32, IndexInfo>,
index_names_map: HashMap<String, HashMap<String, i32>>,
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub struct CataLog {
id_table_map: HashMap<i32, Arc<TableInfo>>,
name_id_map: HashMap<String, i32>,
next_table_id: AtomicI32,
_id_index_map: HashMap<i32, IndexInfo>,
index_names_map: HashMap<String, HashMap<String, i32>>,
}
pub struct CataLog {
id2table: HashMap<i32, Arc<TableInfo>>,
name2id: HashMap<String, i32>,
next_table_id: AtomicI32,
id2index: HashMap<i32, IndexInfo>,
index2name: HashMap<String, HashMap<String, i32>>,
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样做的意义是?

@fansehep
Copy link
Collaborator Author

@Tangruilin PTAL.

@fansehep fansehep closed this by deleting the head repository Feb 29, 2024
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.

2 participants