OmniSciDB
a5dc49c757
|
Public Member Functions | |
ParquetImportBatchResult ()=default | |
ParquetImportBatchResult (const ForeignTable *foreign_table, const int db_id, const ForeignTableSchema *schema) | |
ParquetImportBatchResult (ParquetImportBatchResult &&other)=default | |
std::optional < Fragmenter_Namespace::InsertData > | getInsertData () const override |
import_export::ImportStatus | getImportStatus () const override |
std::pair< std::map< int, Chunk_NS::Chunk >, std::map < int, StringDictionary * > > | getChunksAndDictionaries () const |
void | populateInsertData (const std::map< int, Chunk_NS::Chunk > &chunks) |
void | populateImportStatus (const size_t num_rows_completed, const size_t num_rows_rejected) |
Public Member Functions inherited from import_export::ImportBatchResult | |
virtual | ~ImportBatchResult ()=default |
Private Attributes | |
std::optional < Fragmenter_Namespace::InsertData > | insert_data_ |
std::map< int, std::unique_ptr < AbstractBuffer > > | import_buffers_ |
const ForeignTable * | foreign_table_ |
int | db_id_ |
const ForeignTableSchema * | schema_ |
import_export::ImportStatus | import_status_ |
Definition at line 95 of file ParquetImporter.cpp.
|
default |
foreign_storage::ParquetImportBatchResult::ParquetImportBatchResult | ( | const ForeignTable * | foreign_table, |
const int | db_id, | ||
const ForeignTableSchema * | schema | ||
) |
Definition at line 189 of file ParquetImporter.cpp.
References foreign_storage::ForeignTableSchema::getLogicalAndPhysicalColumns(), import_buffers_, and schema_.
|
default |
std::pair< std::map< int, Chunk_NS::Chunk >, std::map< int, StringDictionary * > > foreign_storage::ParquetImportBatchResult::getChunksAndDictionaries | ( | ) | const |
Definition at line 159 of file ParquetImporter.cpp.
References CHECK, db_id_, Catalog_Namespace::SysCatalog::getCatalog(), foreign_storage::ForeignTableSchema::getLogicalAndPhysicalColumns(), import_buffers_, Catalog_Namespace::SysCatalog::instance(), schema_, and Chunk_NS::Chunk::setBuffer().
|
overridevirtual |
Implements import_export::ImportBatchResult.
Definition at line 214 of file ParquetImporter.cpp.
References import_status_.
|
overridevirtual |
Implements import_export::ImportBatchResult.
Definition at line 209 of file ParquetImporter.cpp.
References insert_data_.
void foreign_storage::ParquetImportBatchResult::populateImportStatus | ( | const size_t | num_rows_completed, |
const size_t | num_rows_rejected | ||
) |
Definition at line 123 of file ParquetImporter.cpp.
References import_status_, import_export::ImportStatus::rows_completed, and import_export::ImportStatus::rows_rejected.
void foreign_storage::ParquetImportBatchResult::populateInsertData | ( | const std::map< int, Chunk_NS::Chunk > & | chunks | ) |
Definition at line 129 of file ParquetImporter.cpp.
References DataBlockPtr::arraysPtr, CHECK, db_id_, foreign_table_, insert_data_, DataBlockPtr::numbersPtr, DataBlockPtr::stringsPtr, and TableDescriptor::tableId.
|
private |
Definition at line 118 of file ParquetImporter.cpp.
Referenced by getChunksAndDictionaries(), and populateInsertData().
|
private |
Definition at line 117 of file ParquetImporter.cpp.
Referenced by populateInsertData().
|
private |
Definition at line 115 of file ParquetImporter.cpp.
Referenced by getChunksAndDictionaries(), and ParquetImportBatchResult().
|
private |
Definition at line 120 of file ParquetImporter.cpp.
Referenced by getImportStatus(), and populateImportStatus().
|
private |
Definition at line 114 of file ParquetImporter.cpp.
Referenced by getInsertData(), and populateInsertData().
|
private |
Definition at line 119 of file ParquetImporter.cpp.
Referenced by getChunksAndDictionaries(), and ParquetImportBatchResult().