OmniSciDB  a5dc49c757
 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 663 of file Importer.h.

Constructor & Destructor Documentation

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 673 of file Importer.h.

674  : start(std::chrono::steady_clock::now())
675  , rows_completed(0)
676  , rows_estimated(0)
677  , rows_rejected(0)
678  , elapsed(0)
679  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:669
std::chrono::steady_clock::time_point start
Definition: Importer.h:664

Member Function Documentation

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

Definition at line 681 of file Importer.h.

References load_failed, load_msg, rows_completed, and rows_rejected.

681  {
682  rows_completed += is.rows_completed;
683  rows_rejected += is.rows_rejected;
684  if (is.load_failed) {
685  load_failed = true;
686  load_msg = is.load_msg;
687  }
688 
689  return *this;
690  }

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