OmniSciDB  04ee39c94c
Importer_NS::ImportStatus Struct Reference

#include <Importer.h>

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_truncated
 
int thread_id
 

Detailed Description

Definition at line 708 of file Importer.h.

Constructor & Destructor Documentation

◆ ImportStatus()

Importer_NS::ImportStatus::ImportStatus ( )
inline

Definition at line 717 of file Importer.h.

718  : start(std::chrono::steady_clock::now())
719  , rows_completed(0)
720  , rows_estimated(0)
721  , rows_rejected(0)
722  , elapsed(0)
723  , load_truncated(0)
724  , thread_id(0) {}
std::chrono::steady_clock::time_point start
Definition: Importer.h:709
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:714

Member Function Documentation

◆ operator+=()

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

Definition at line 726 of file Importer.h.

References rows_completed, and rows_rejected.

726  {
727  rows_completed += is.rows_completed;
728  rows_rejected += is.rows_rejected;
729 
730  return *this;
731  }

Member Data Documentation

◆ elapsed

std::chrono::duration<size_t, std::milli> Importer_NS::ImportStatus::elapsed

Definition at line 714 of file Importer.h.

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

◆ end

std::chrono::steady_clock::time_point Importer_NS::ImportStatus::end

Definition at line 710 of file Importer.h.

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

◆ load_truncated

◆ rows_completed

◆ rows_estimated

size_t Importer_NS::ImportStatus::rows_estimated

◆ rows_rejected

◆ start

std::chrono::steady_clock::time_point Importer_NS::ImportStatus::start

Definition at line 709 of file Importer.h.

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

◆ thread_id

int Importer_NS::ImportStatus::thread_id

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