-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Introduce delay analyzer to get watermark between sequence data and unsequece data based on ICDE 2022 #16886
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
base: master
Are you sure you want to change the base?
Conversation
| /** Delay analyzer for tracking data arrival delays and calculating safe watermarks */ | ||
| private final DelayAnalyzer delayAnalyzer; | ||
|
|
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.
Add a switch for this to avoid affecting performance of existing scenarios.
| /** Default window size, empirical value: 10000 sample points */ | ||
| public static final int DEFAULT_WINDOW_SIZE = 10000; | ||
|
|
||
| /** Recommended window size range */ | ||
| public static final int MIN_WINDOW_SIZE = 1000; | ||
|
|
||
| public static final int MAX_WINDOW_SIZE = 100000; | ||
|
|
||
| /** Default confidence level: 99% */ | ||
| public static final double DEFAULT_CONFIDENCE_LEVEL = 0.99; |
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.
better to add as some configurations.
| @TestOnly | ||
| public DelayAnalyzer(int windowSize, int placeHolder) { | ||
| this.windowSize = windowSize; | ||
| this.delaySamples = new long[windowSize]; | ||
| } |
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.
May use a static method instead of adding a hard-to-understand placeHolder
details can be referred from comments in code