MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / updateProgress

Method updateProgress

src/processor/operator/persistent/rel_batch_insert.cpp:268–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void RelBatchInsert::updateProgress(const ExecutionContext* context) const {
269 auto progressBar = ProgressBar::Get(*context->clientContext);
270 if (progressSharedState->partitionsTotal == 0) {
271 progressBar->updateProgress(context->queryID, 0);
272 } else {
273 double progress = static_cast<double>(progressSharedState->partitionsDone) /
274 static_cast<double>(progressSharedState->partitionsTotal);
275 progressBar->updateProgress(context->queryID, progress);
276 }
277}
278
279} // namespace processor
280} // namespace lbug

Callers 2

getNextTupleMethod · 0.45
executeInternalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected