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

logical_range_filter: Separate a base of ShardExecutor into another class #1343

Merged
merged 6 commits into from
Mar 31, 2022

Conversation

HashidaTKS
Copy link
Contributor

@HashidaTKS HashidaTKS commented Mar 29, 2022

  • Separate a base of ShardExecutor into another class ShardExecutorBase.
  • Change ShardExecutor to inherite ShardExecutorBase.

This is a preparation for #1341.
ShardExecutorBase requires children to implement execute_filter and use_range_index?.
Next step, implementing execute_filter and use_range_index? into a class that inherits ShardExecutorBase in logical_count.

Concern:

ShardExecutorBase requires children to implement execute_filter and use_range_index?.

Unless already knowing it, a reader of ShardExecutorBase has to read the code deeply or actually execute the code to know it.
Is there any good way to resolve it in Ruby?
(I also feel that the structure of ShardExecutorBase is not so good...)

@@ -0,0 +1,211 @@
module Groonga
module Sharding
class ShardExecutorBase
Copy link
Member

Choose a reason for hiding this comment

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

How about StreamShardExecutor or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

I have renamed it.

@HashidaTKS
Copy link
Contributor Author

HashidaTKS commented Mar 30, 2022

I have rebased this branch onto the latest master branch.

@kou
Copy link
Member

kou commented Mar 30, 2022

We can merge this once CI isn't failed.

@HashidaTKS
Copy link
Contributor Author

Would you mind if I merge this?

@kou kou merged commit 4779536 into groonga:master Mar 31, 2022
@kou
Copy link
Member

kou commented Mar 31, 2022

Merged.

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