Github user gauravgopi123 commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/168#discussion_r45023930
--- Diff: api/src/main/java/com/datatorrent/api/Context.java ---
@@ -301,6 +301,12 @@
*/
int getId();
+ /**
+ * Return the number of windows before the next checkpoint including
the current window.
+ * @return Number of windows from checkpoint, 1 if the checkpoint will
be after the current window
+ */
+ int getWindowsFromCheckpoint();
--- End diff --
@PramodSSImmaneni If an operator is inside a widow and checkpoint will
happen after that, should this not return 0? 1 means that there is still one
window before checkpoint will happen which is not the case right
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---