Skip to content

Commit

Permalink
[FLINK-20217][task] Enable splittable timers in CepOperator and Table…
Browse files Browse the repository at this point in the history
…StreamOperator
  • Loading branch information
pnowojski committed Jun 12, 2024
1 parent f93cac3 commit f26ee47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ public CepOperator(
}
}

@Override
public boolean useSplittableTimers() {
return true;
}

@Override
public void setup(
StreamTask<?, ?> containingTask,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public void open() throws Exception {
this.ctx = new ContextImpl(getProcessingTimeService());
}

@Override
public boolean useSplittableTimers() {
return true;
}

/** Compute memory size from memory faction. */
public long computeMemorySize() {
final Environment environment = getContainingTask().getEnvironment();
Expand All @@ -71,6 +76,7 @@ public void processWatermark(Watermark mark) throws Exception {
currentWatermark = mark.getTimestamp();
super.processWatermark(mark);
}

/** Information available in an invocation of processElement. */
protected class ContextImpl implements TimerService {

Expand Down

0 comments on commit f26ee47

Please sign in to comment.