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

Separate dwrf config definition from impl #3393

Closed

Conversation

HuamengJiang
Copy link
Contributor

Differential Revision: D41658954

@netlify
Copy link

netlify bot commented Dec 1, 2022

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit c046065
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/63891f85c6386400081aa9b8

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Dec 1, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41658954

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@HuamengJiang LGTM. Consider add a simple mock test for ConfigBase. Thanks!

template <typename T>
ConfigBase& unset(const Entry<T>& entry) {
auto iter = configs_.find(entry.key_);
if (iter != configs_.end()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you could just erase directly?

HuamengJiang pushed a commit to HuamengJiang/velox-1 that referenced this pull request Dec 1, 2022
Summary:
Pull Request resolved: facebookincubator#3393

Separate the config definition from the actual mechanism. Rename the impl class as `ConfigBase` and concrete config classes will derive `ConfigBase<ConcreteConfig>` like `dwrf::Config` and just define all the entries.

Reviewed By: xiaoxmeng

Differential Revision: D41658954

fbshipit-source-id: 3a5f8770fc42b3725228a870ef0146608b544c00
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41658954

Summary:
Pull Request resolved: facebookincubator#3393

Separate the config definition from the actual mechanism. Rename the impl class as `ConfigBase` and concrete config classes will derive `ConfigBase<ConcreteConfig>` like `dwrf::Config` and just define all the entries.

Reviewed By: xiaoxmeng

Differential Revision: D41658954

fbshipit-source-id: 989600a32349fc07a316b3ab8d5eacc76984881d
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41658954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants