OmniSciDB
a5dc49c757
|
Namespaces | |
anonymous_namespace{CsvShared.cpp} | |
Functions | |
bool | validate_and_get_is_s3_select (const ForeignTable *foreign_table) |
void | validate_options (const ForeignTable *foreign_table) |
import_export::CopyParams | validate_and_get_copy_params (const ForeignTable *foreign_table) |
void | init_chunk_for_column (const ChunkKey &chunk_key, const std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> &chunk_metadata_map, const std::map< ChunkKey, AbstractBuffer * > &buffers, Chunk_NS::Chunk &chunk) |
std::shared_ptr< ChunkMetadata > | get_placeholder_metadata (const ColumnDescriptor *column, size_t num_elements) |
std::shared_ptr<ChunkMetadata> foreign_storage::Csv::get_placeholder_metadata | ( | const ColumnDescriptor * | column, |
size_t | num_elements | ||
) |
Definition at line 254 of file CsvShared.cpp.
References ColumnDescriptor::columnType, SQLTypeInfo::get_elem_type(), SQLTypeInfo::get_size(), Data_Namespace::AbstractBuffer::getEncoder(), Encoder::getMetadata(), Data_Namespace::AbstractBuffer::initEncoder(), SQLTypeInfo::is_array(), and SQLTypeInfo::is_varlen_indeed().
void foreign_storage::Csv::init_chunk_for_column | ( | const ChunkKey & | chunk_key, |
const std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> & | chunk_metadata_map, | ||
const std::map< ChunkKey, AbstractBuffer * > & | buffers, | ||
Chunk_NS::Chunk & | chunk | ||
) |
Definition at line 201 of file CsvShared.cpp.
References CHECK, CHECK_EQ, CHUNK_KEY_COLUMN_IDX, CHUNK_KEY_DB_IDX, CHUNK_KEY_TABLE_IDX, Catalog_Namespace::SysCatalog::getCatalog(), Chunk_NS::Chunk::initEncoder(), Catalog_Namespace::SysCatalog::instance(), Data_Namespace::AbstractBuffer::reserve(), Chunk_NS::Chunk::setBuffer(), Chunk_NS::Chunk::setColumnDesc(), Chunk_NS::Chunk::setIndexBuffer(), Data_Namespace::AbstractBuffer::size(), and UNREACHABLE.
import_export::CopyParams foreign_storage::Csv::validate_and_get_copy_params | ( | const ForeignTable * | foreign_table | ) |
Definition at line 146 of file CsvShared.cpp.
References foreign_storage::OptionsContainer::options, import_export::CopyParams::plain_text, foreign_storage::anonymous_namespace{CsvFileBufferParser.cpp}::validate_and_get_bool_value(), foreign_storage::anonymous_namespace{CsvFileBufferParser.cpp}::validate_and_get_delimiter(), and foreign_storage::anonymous_namespace{CsvFileBufferParser.cpp}::validate_and_get_string_with_length().
Referenced by validate_options().
bool foreign_storage::Csv::validate_and_get_is_s3_select | ( | const ForeignTable * | foreign_table | ) |
Definition at line 113 of file CsvShared.cpp.
References foreign_storage::ForeignTable::foreign_server, foreign_storage::OptionsContainer::options, foreign_storage::AbstractFileStorageDataWrapper::S3_STORAGE_TYPE, and foreign_storage::AbstractFileStorageDataWrapper::STORAGE_TYPE_KEY.
Referenced by validate_options().
void foreign_storage::Csv::validate_options | ( | const ForeignTable * | foreign_table | ) |
Definition at line 141 of file CsvShared.cpp.
References validate_and_get_copy_params(), and validate_and_get_is_s3_select().