OmniSciDB  8a228a1076
import_export::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 602 of file Importer.h.

Constructor & Destructor Documentation

◆ ImportStatus()

import_export::ImportStatus::ImportStatus ( )
inline

Definition at line 611 of file Importer.h.

612  : start(std::chrono::steady_clock::now())
613  , rows_completed(0)
614  , rows_estimated(0)
615  , rows_rejected(0)
616  , elapsed(0)
617  , load_truncated(0)
618  , thread_id(0) {}
std::chrono::duration< size_t, std::milli > elapsed
Definition: Importer.h:608
std::chrono::steady_clock::time_point start
Definition: Importer.h:603

Member Function Documentation

◆ operator+=()

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

Definition at line 620 of file Importer.h.

References rows_completed, and rows_rejected.

620  {
621  rows_completed += is.rows_completed;
622  rows_rejected += is.rows_rejected;
623 
624  return *this;
625  }

Member Data Documentation

◆ elapsed

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

Definition at line 608 of file Importer.h.

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

◆ end

std::chrono::steady_clock::time_point import_export::ImportStatus::end

Definition at line 604 of file Importer.h.

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

◆ load_truncated

◆ rows_completed

◆ rows_estimated

size_t import_export::ImportStatus::rows_estimated

◆ rows_rejected

◆ start

std::chrono::steady_clock::time_point import_export::ImportStatus::start

Definition at line 603 of file Importer.h.

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

◆ thread_id

int import_export::ImportStatus::thread_id

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