OmniSciDB
a5dc49c757
|
#include <LogFileBufferParser.h>
Public Member Functions | |
LogFileBufferParser (const ForeignTable *foreign_table, int32_t db_id) | |
Public Member Functions inherited from foreign_storage::RegexFileBufferParser | |
RegexFileBufferParser (const ForeignTable *foreign_table) | |
ParseBufferResult | parseBuffer (ParseBufferRequest &request, bool convert_data_blocks, bool columns_are_pre_filtered=false, bool skip_dict_encoding=false) const override |
import_export::CopyParams | validateAndGetCopyParams (const ForeignTable *foreign_table) const override |
size_t | findRowEndPosition (size_t &alloc_size, std::unique_ptr< char[]> &buffer, size_t &buffer_size, const import_export::CopyParams ©_params, const size_t buffer_first_row_index, unsigned int &num_rows_in_buffer, FileReader *file_reader) const override |
void | validateFiles (const FileReader *file_reader, const ForeignTable *foreign_table) const override |
Protected Member Functions | |
bool | regexMatchColumns (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) const override |
bool | shouldRemoveNonMatches () const override |
bool | shouldTruncateStringValues () const override |
Private Attributes | |
const ForeignTable * | foreign_table_ |
const int32_t | db_id_ |
Additional Inherited Members | |
Static Public Member Functions inherited from foreign_storage::RegexFileBufferParser | |
static void | setMaxBufferResize (size_t max_buffer_resize) |
Static Public Member Functions inherited from foreign_storage::TextFileBufferParser | |
static std::map< int, DataBlockPtr > | convertImportBuffersToDataBlocks (const std::vector< std::unique_ptr< import_export::TypedImportBuffer >> &import_buffers, const bool skip_dict_encoding=false) |
static bool | isCoordinateScalar (const std::string_view datum) |
static void | processGeoColumn (std::vector< std::unique_ptr< import_export::TypedImportBuffer >> &import_buffers, size_t &col_idx, const import_export::CopyParams ©_params, std::list< const ColumnDescriptor * >::iterator &cd_it, std::vector< std::string_view > &row, size_t &import_idx, bool is_null, size_t first_row_index, size_t row_index_plus_one, std::shared_ptr< Catalog_Namespace::Catalog > catalog) |
static void | fillRejectedRowWithInvalidData (const std::list< const ColumnDescriptor * > &columns, std::list< const ColumnDescriptor * >::iterator &cd_it, const size_t col_idx, ParseBufferRequest &request) |
static bool | isNullDatum (const std::string_view datum, const ColumnDescriptor *column, const std::string &null_indicator) |
Static Public Attributes inherited from foreign_storage::RegexFileBufferParser | |
static const std::string | LINE_REGEX_KEY = "LINE_REGEX" |
static const std::string | LINE_START_REGEX_KEY = "LINE_START_REGEX" |
static const std::string | HEADER_KEY = "HEADER" |
Static Public Attributes inherited from foreign_storage::TextFileBufferParser | |
static const std::string | BUFFER_SIZE_KEY = "BUFFER_SIZE" |
Definition at line 22 of file LogFileBufferParser.h.
foreign_storage::LogFileBufferParser::LogFileBufferParser | ( | const ForeignTable * | foreign_table, |
int32_t | db_id | ||
) |
Definition at line 126 of file LogFileBufferParser.cpp.
|
overrideprotectedvirtual |
Reimplemented from foreign_storage::RegexFileBufferParser.
Definition at line 131 of file LogFileBufferParser.cpp.
References foreign_storage::anonymous_namespace{LogFileBufferParser.cpp}::add_column_value(), foreign_storage::anonymous_namespace{LogFileBufferParser.cpp}::add_nonce_values(), CHECK, CHECK_EQ, CHECK_GT, foreign_storage::anonymous_namespace{LogFileBufferParser.cpp}::create_map_from_arrays(), db_id_, foreign_table_, foreign_storage::anonymous_namespace{LogFileBufferParser.cpp}::get_node_name(), foreign_storage::RegexFileBufferParser::regexMatchColumns(), TableDescriptor::tableId, and TableDescriptor::tableName.
|
overrideprotectedvirtual |
Reimplemented from foreign_storage::RegexFileBufferParser.
Definition at line 202 of file LogFileBufferParser.cpp.
|
overrideprotectedvirtual |
Reimplemented from foreign_storage::RegexFileBufferParser.
Definition at line 206 of file LogFileBufferParser.cpp.
|
private |
Definition at line 40 of file LogFileBufferParser.h.
Referenced by regexMatchColumns().
|
private |
Definition at line 39 of file LogFileBufferParser.h.
Referenced by regexMatchColumns().