| 224 | } |
| 225 | |
| 226 | void ReaderBase::SaveBaseState(ReaderBaseState* state) const { |
| 227 | state->Clear(); |
| 228 | state->set_work_started(work_started_); |
| 229 | state->set_work_finished(work_finished_); |
| 230 | state->set_num_records_produced(num_records_produced_); |
| 231 | state->set_current_work(work_); |
| 232 | } |
| 233 | |
| 234 | string ReaderBase::KeyName(const string& key) const { |
| 235 | return strings::StrCat(current_work(), ":", key); |