Class foreign_storage::CsvDataWrapper

class CsvDataWrapper : public foreign_storage::AbstractTextFileDataWrapper

Public Functions

CsvDataWrapper()
CsvDataWrapper(const int db_id, const ForeignTable *foreign_table)
CsvDataWrapper(const int db_id, const ForeignTable *foreign_table, const UserMapping *user_mapping, const bool disable_cache = false)
void validateTableOptions(const ForeignTable *foreign_table) const

Checks that the options for the given foreign table object are valid.

Parameters
  • foreign_table: - foreign table object containing options to be validated

const std::set<std::string_view> &getSupportedTableOptions() const

Gets the set of supported table options for the data wrapper.

Public Static Functions

bool validateAndGetIsS3Select(const ForeignTable *foreign_table)

Protected Functions

const TextFileBufferParser &getFileBufferParser() const

Private Functions

std::set<std::string_view> getAllCsvTableOptions() const

Private Static Attributes

const std::set<std::string_view> csv_table_options_{"ARRAY_DELIMITER", , , , , , , , , , , }
const CsvFileBufferParser csv_file_buffer_parser_ = {}