OmniSciDB  16c4e035a1
 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 646 of file Importer.h.

Constructor & Destructor Documentation

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 656 of file Importer.h.

657  : start(std::chrono::steady_clock::now())
658  , rows_completed(0)
659  , rows_estimated(0)
660  , rows_rejected(0)
661  , elapsed(0)
662  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:652
std::chrono::steady_clock::time_point start
Definition: Importer.h:647

Member Function Documentation

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

Definition at line 664 of file Importer.h.

References load_failed, load_msg, rows_completed, and rows_rejected.

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

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