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
[LYFT][STRMCMP-1152] Code refactoring for s3AndKinesis PTransform #49
Conversation
/ptal (👀) @premsantosh @glaksh100 |
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.
Looks good to me. Thanks for making this change.
builder = builder.withLatenessInSec(latenessInSec.asLong()); | ||
JsonNode maxOutOfOrdernessMillis = node.get("max_out_of_orderness_millis"); | ||
if (maxOutOfOrdernessMillis != null) { | ||
builder = builder.withLatenessInSec(maxOutOfOrdernessMillis.asLong()/1000); |
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.
Lets just add a TODO here to change the builder method name later as well.
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 made the change to avoid tripping off Beam users. One is developer friendly and the other is streaming pro friendly :) Added a TODO for now.
Refactoring s3AndKinesis PTransform.
namedtuple
and using classes.