6 #ifndef TURI_UNITY_LIB_PARALLEL_CSV_PARSER_HPP 7 #define TURI_UNITY_LIB_PARALLEL_CSV_PARSER_HPP 11 #include <core/data/flexible_type/flexible_type.hpp> 12 #include <core/storage/sframe_data/sframe.hpp> 13 #include <core/storage/sframe_data/csv_line_tokenizer.hpp> 14 #include <core/storage/sframe_data/sframe_constants.hpp> 70 const std::string& url,
74 std::string frame_sidx_file =
"");
79 #endif // TURI_UNITY_LIB_PARALLEL_CSV_PARSER_HPP bool continue_on_failure
Whether we should just skip line errors.
std::map< std::string, flex_type_enum > column_type_hints
collection of column name->type. Every other column type will be parsed as a string ...
bool use_header
Whether the first (non-commented) line of the file is the column name header.
std::map< std::string, std::shared_ptr< sarray< flexible_type > > > parse_csvs_to_sframe(const std::string &url, csv_line_tokenizer &tokenizer, csv_file_handling_options options, sframe &frame, std::string frame_sidx_file="")
std::vector< std::string > output_columns
Output column names.
size_t row_limit
The number of rows to read. If 0, all lines are read.
std::istream & eol_safe_getline(std::istream &is, std::string &t)
size_t skip_rows
Number of rows at the start of each file to ignore.
bool store_errors
Whether failed parses will be stored in an sarray of strings and returned.