OmniSciDB
085a039ca4
|
Functions | |
size_t | find_last_end_of_line (const char *buffer, size_t buffer_size, size_t start, size_t end, char line_delim) |
bool | line_starts_with_regex (const char *buffer, size_t start, size_t end, const boost::regex &line_start_regex) |
std::optional< std::string > | get_line_start_regex (const ForeignTable *foreign_table) |
std::string | get_line_regex (const ForeignTable *foreign_table) |
std::string | get_next_row (const char *curr, const char *buffer_end, char line_delim, const std::optional< boost::regex > &line_start_regex) |
size_t | get_row_count (const char *buffer, size_t start, size_t end, char line_delim, const std::optional< boost::regex > &line_start_regex) |
bool | regex_match_columns (const std::string &row_str, const boost::regex &line_regex, size_t logical_column_count, std::vector< std::string > &parsed_columns_str, std::vector< std::string_view > &parsed_columns_sv, const std::string &file_path) |
std::optional< bool > | validate_and_get_bool_value (const ForeignTable *foreign_table, const std::string &option_name) |
size_t foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::find_last_end_of_line | ( | const char * | buffer, |
size_t | buffer_size, | ||
size_t | start, | ||
size_t | end, | ||
char | line_delim | ||
) |
Definition at line 27 of file RegexFileBufferParser.cpp.
References to_string().
Referenced by foreign_storage::RegexFileBufferParser::findRowEndPosition().
std::string foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::get_line_regex | ( | const ForeignTable * | foreign_table | ) |
Definition at line 64 of file RegexFileBufferParser.cpp.
References CHECK, foreign_storage::RegexFileBufferParser::LINE_REGEX_KEY, and foreign_storage::OptionsContainer::options.
std::optional<std::string> foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::get_line_start_regex | ( | const ForeignTable * | foreign_table | ) |
Definition at line 54 of file RegexFileBufferParser.cpp.
References foreign_storage::RegexFileBufferParser::LINE_START_REGEX_KEY, and foreign_storage::OptionsContainer::options.
Referenced by foreign_storage::RegexFileBufferParser::validateFiles().
std::string foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::get_next_row | ( | const char * | curr, |
const char * | buffer_end, | ||
char | line_delim, | ||
const std::optional< boost::regex > & | line_start_regex | ||
) |
Definition at line 73 of file RegexFileBufferParser.cpp.
References CHECK, and line_starts_with_regex().
Referenced by get_row_count(), and foreign_storage::RegexFileBufferParser::parseBuffer().
size_t foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::get_row_count | ( | const char * | buffer, |
size_t | start, | ||
size_t | end, | ||
char | line_delim, | ||
const std::optional< boost::regex > & | line_start_regex | ||
) |
Definition at line 109 of file RegexFileBufferParser.cpp.
References get_next_row().
Referenced by foreign_storage::RegexFileBufferParser::findRowEndPosition().
bool foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::line_starts_with_regex | ( | const char * | buffer, |
size_t | start, | ||
size_t | end, | ||
const boost::regex & | line_start_regex | ||
) |
Definition at line 45 of file RegexFileBufferParser.cpp.
Referenced by foreign_storage::RegexFileBufferParser::findRowEndPosition(), get_next_row(), and foreign_storage::RegexFileBufferParser::validateFiles().
bool foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::regex_match_columns | ( | const std::string & | row_str, |
const boost::regex & | line_regex, | ||
size_t | logical_column_count, | ||
std::vector< std::string > & | parsed_columns_str, | ||
std::vector< std::string_view > & | parsed_columns_sv, | ||
const std::string & | file_path | ||
) |
Definition at line 125 of file RegexFileBufferParser.cpp.
References CHECK_GT, and foreign_storage::throw_number_of_columns_mismatch_error().
Referenced by foreign_storage::RegexFileBufferParser::parseBuffer().
std::optional<bool> foreign_storage::anonymous_namespace{RegexFileBufferParser.cpp}::validate_and_get_bool_value | ( | const ForeignTable * | foreign_table, |
const std::string & | option_name | ||
) |
Definition at line 154 of file RegexFileBufferParser.cpp.
References foreign_storage::OptionsContainer::options.