OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
import_export::ImportStatus Struct Reference

#include <Importer.h>

+ Collaboration diagram for import_export::ImportStatus:

Public Member Functions

 ImportStatus ()
 
ImportStatusoperator+= (const ImportStatus &is)
 

Public Attributes

std::chrono::steady_clock::time_point start
 
std::chrono::steady_clock::time_point end
 
size_t rows_completed
 
size_t rows_estimated
 
size_t rows_rejected
 
std::chrono::duration< size_t,
std::milli > 
elapsed
 
bool load_failed = false
 
std::string load_msg
 
int thread_id
 

Detailed Description

Definition at line 620 of file Importer.h.

Constructor & Destructor Documentation

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 630 of file Importer.h.

631  : start(std::chrono::steady_clock::now())
632  , rows_completed(0)
633  , rows_estimated(0)
634  , rows_rejected(0)
635  , elapsed(0)
636  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:626
std::chrono::steady_clock::time_point start
Definition: Importer.h:621

Member Function Documentation

ImportStatus& import_export::ImportStatus::operator+= ( const ImportStatus is)
inline

Definition at line 638 of file Importer.h.

References load_failed, load_msg, rows_completed, and rows_rejected.

638  {
639  rows_completed += is.rows_completed;
640  rows_rejected += is.rows_rejected;
641  if (is.load_failed) {
642  load_failed = true;
643  load_msg = is.load_msg;
644  }
645 
646  return *this;
647  }

Member Data Documentation

std::chrono::duration<size_t, std::milli> import_export::ImportStatus::elapsed
std::chrono::steady_clock::time_point import_export::ImportStatus::end

Definition at line 622 of file Importer.h.

Referenced by import_export::Importer::set_import_status().

std::chrono::steady_clock::time_point import_export::ImportStatus::start

Definition at line 621 of file Importer.h.

Referenced by import_export::Importer::set_import_status().

int import_export::ImportStatus::thread_id

The documentation for this struct was generated from the following file: