MCPcopy Create free account
hub / github.com/ByConity/ByConity / writePrefix

Method writePrefix

src/DataStreams/CountingBlockOutputStream.cpp:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void CountingBlockOutputStream::writePrefix()
68{
69 stopwatch.start();
70
71 stream->writePrefix();
72
73 Progress local_progress(0, 0, 0, stopwatch.elapsedMilliseconds());
74 progress.incrementPiecewiseAtomically(local_progress);
75
76 /// Update the write duration to progress
77 if (process_elem)
78 process_elem->updateProgressOut(local_progress);
79
80 if (progress_callback)
81 progress_callback(local_progress);
82}
83
84void CountingBlockOutputStream::writeSuffix()
85{

Callers 2

copyDataImplFunction · 0.45
formatBlockFunction · 0.45

Calls 4

startMethod · 0.45
elapsedMillisecondsMethod · 0.45
updateProgressOutMethod · 0.45

Tested by

no test coverage detected