OmniSciDB  a987f07e93
 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 657 of file Importer.h.

Constructor & Destructor Documentation

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 667 of file Importer.h.

668  : start(std::chrono::steady_clock::now())
669  , rows_completed(0)
670  , rows_estimated(0)
671  , rows_rejected(0)
672  , elapsed(0)
673  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:663
std::chrono::steady_clock::time_point start
Definition: Importer.h:658

Member Function Documentation

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

Definition at line 675 of file Importer.h.

References load_failed, load_msg, rows_completed, and rows_rejected.

675  {
676  rows_completed += is.rows_completed;
677  rows_rejected += is.rows_rejected;
678  if (is.load_failed) {
679  load_failed = true;
680  load_msg = is.load_msg;
681  }
682 
683  return *this;
684  }

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