MCPcopy Create free account
hub / github.com/comnik/declarative-dataflow / flush

Method flush

src/domain/unordered_session.rs:82–91  ·  view source on GitHub ↗

Forces buffered data into the timely dataflow input, and advances its time to match that of the session. It is important to call `flush` before expecting timely dataflow to report progress. Until this method is called, all updates may still be in internal buffers and not exposed to timely dataflow. Once the method is called, all buffers are flushed and timely dataflow is advised that some logical

(&mut self)

Source from the content-addressed store, hash-verified

80 /// flushed and timely dataflow is advised that some logical times
81 /// are no longer possible.
82 pub fn flush(&mut self) {
83 // @TODO get rid of the double buffering maybe?
84 self.handle
85 .session(self.cap.clone())
86 .give_iterator(self.buffer.drain(..));
87
88 if self.cap.time().less_than(&self.time) {
89 self.cap = self.cap.delayed(&self.time);
90 }
91 }
92
93 /// Advances the logical time for future records.
94 ///

Callers 3

mainFunction · 0.80
dropMethod · 0.80
advance_epochMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected