Kùzu C++ API
Loading...
Searching...
No Matches
progress_bar_display.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5namespace kuzu {
6namespace common {
7
12public:
14
15 virtual ~ProgressBarDisplay() = default;
16
17 // Update the progress of the pipeline and the number of finished pipelines. queryID is used to
18 // identify the query when we track progress of multiple queries asynchronously
19 virtual void updateProgress(uint64_t queryID, double newPipelineProgress,
20 uint32_t newNumPipelinesFinished) = 0;
21
22 // Finish the progress display. queryID is used to identify the query when we track progress of
23 // multiple queries asynchronously
24 virtual void finishProgress(uint64_t queryID) = 0;
25
26 void setNumPipelines(uint32_t newNumPipelines) { numPipelines = newNumPipelines; };
27
28protected:
30 uint32_t numPipelines;
32};
33
34} // namespace common
35} // namespace kuzu
Interface for displaying progress of a pipeline and a query.
Definition progress_bar_display.h:11
virtual ~ProgressBarDisplay()=default
void setNumPipelines(uint32_t newNumPipelines)
Definition progress_bar_display.h:26
double pipelineProgress
Definition progress_bar_display.h:29
virtual void updateProgress(uint64_t queryID, double newPipelineProgress, uint32_t newNumPipelinesFinished)=0
uint32_t numPipelinesFinished
Definition progress_bar_display.h:31
ProgressBarDisplay()
Definition progress_bar_display.h:13
uint32_t numPipelines
Definition progress_bar_display.h:30
virtual void finishProgress(uint64_t queryID)=0
Definition alter_type.h:5