OmniSciDB
a5dc49c757
|
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, const boost::regex &line_regex, bool remove_non_matches) |
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 28 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 65 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 55 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 74 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, | ||
const boost::regex & | line_regex, | ||
bool | remove_non_matches | ||
) |
Definition at line 110 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 46 of file RegexFileBufferParser.cpp.
Referenced by foreign_storage::RegexFileBufferParser::findRowEndPosition(), get_next_row(), and foreign_storage::RegexFileBufferParser::validateFiles().
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 134 of file RegexFileBufferParser.cpp.
References foreign_storage::OptionsContainer::options.