-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[CAY-1207] Decouple Pregel framework from pagerank app #1212
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you take a look at my comments and commits?
Thanks!
|
||
@Override | ||
public PregelConfiguration build() { | ||
return new PregelConfiguration(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing each ingredient looks better than a builder.
Then we don't need get methods in Builder class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update it by myself.
@@ -105,15 +108,15 @@ public Builder setMessageCodecClass(final Class<? extends Codec> messageCodecCla | |||
return this; | |||
} | |||
|
|||
public Builder setMessageUpdateFunctionClass(final Class<? extends UpdateFunction> updateFunctionClass) { | |||
this.messageUpdateFunctionClass = updateFunctionClass; | |||
public Builder addParameterClass(final Class<? extends Name<?>> parameterClass) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for future usage, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1178 may use this feature, right?
LGTM! |
Closes #1207
Using
PregelConfiguration
, users can launch the Pregel according to the desired setting.For example,
PagerankET
launches pagerank app on Pregel.