OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 648 of file Importer.h.

Constructor & Destructor Documentation

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 658 of file Importer.h.

659  : start(std::chrono::steady_clock::now())
660  , rows_completed(0)
661  , rows_estimated(0)
662  , rows_rejected(0)
663  , elapsed(0)
664  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:654
std::chrono::steady_clock::time_point start
Definition: Importer.h:649

Member Function Documentation

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

Definition at line 666 of file Importer.h.

References load_failed, load_msg, rows_completed, and rows_rejected.

666  {
667  rows_completed += is.rows_completed;
668  rows_rejected += is.rows_rejected;
669  if (is.load_failed) {
670  load_failed = true;
671  load_msg = is.load_msg;
672  }
673 
674  return *this;
675  }

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 650 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: