22 using namespace impala;
25 label_(label), logging_level_(2), total_(total), update_period_(period),
26 num_complete_(0), last_output_percentage_(0) {
30 logging_level_(2), total_(0), update_period_(0),
31 num_complete_(0), last_output_percentage_(0) {
36 if (delta == 0)
return;
45 if (num_complete >=
total_) {
48 << num_complete <<
" out of " <<
total_ <<
")";
58 << num_complete <<
" out of " <<
total_ <<
")";
65 if (num_complete >=
total_) {
67 ss <<
label_ <<
" 100\% Complete (" << num_complete <<
" out of " <<
total_ <<
")";
71 ss <<
label_ <<
": " << percentage <<
"\% Complete ("
72 << num_complete <<
" out of " <<
total_ <<
")";
int64_t num_complete() const
std::string ToString() const
Returns a string representation of the current progress.
AtomicInt< int64_t > num_complete_
int last_output_percentage_
void Update(int64_t delta)