|
| | MmapParser (csv::string_view filename, const CSVFormat &format, const ColNamesPtr &col_names=nullptr) |
| |
| std::string & | get_csv_head () override |
| |
| void | next (size_t bytes) override |
| | Parse the next block of data.
|
| |
| | CSVParserDriverBase (const CSVFormat &, const ColNamesPtr &) |
| |
| | CSVParserDriverBase (const ParseFlagMap &parse_flags, const WhitespaceMap &ws_flags) |
| |
| const CSVError & | error () const noexcept |
| | Source errors are read by the consumer only after joining its scheduler.
|
| |
| bool | eof () const noexcept |
| | Whether or not we have reached the end of source.
|
| |
| ResolvedFormat | get_resolved_format () |
| |
| virtual SpeculativeParseDiagnostics | speculative_diagnostics () const noexcept |
| |
| virtual size_t | parse_worker_count () const noexcept |
| |
| virtual bool | utf8_bom () const noexcept |
| |
| | CSVParserCore (const CSVFormat &source_format, const ColNamesPtr &col_names) |
| |
| | CSVParserCore (const ParseFlagMap &parse_flags, const WhitespaceMap &ws_flags) |
| |
| | CSVParserCore (const ParseFlagMap &parse_flags, const WhitespaceMap &ws_flags, const ColNamesPtr &col_names) |
| |
| void | end_feed () |
| | Indicate the last block of data has been parsed.
|
| |
| CONSTEXPR_17 ParseFlags | parse_flag (const char ch) const noexcept |
| |
| CONSTEXPR_17 ParseFlags | compound_parse_flag (const char ch) const noexcept |
| |
| void | set_output (RowSink &output) noexcept |
| |
| RowSink & | output () noexcept |
| |
| void | reset_with_initial_state (ParserDFAState state) noexcept |
| | Seed the DFA state for the next parse call.
|
| |
| void | reset_with_initial_state (bool starts_in_quoted, bool in_escape=false) noexcept |
| | Convenience overload for callers that only care about quote state.
|
| |
| ParserDFAState | ending_state () const noexcept |
| | Return the DFA state observed when the most recent parse call stopped.
|
| |
| ParserChunkResult | parse_chunk (csv::string_view chunk, std::shared_ptr< void > owner) |
| |
| ParserChunkResult | parse_chunk (csv::string_view chunk, std::shared_ptr< void > owner, const ParserChunkOptions &options) |
| |
| ParserChunkResult | parse_chunk (csv::string_view chunk, std::shared_ptr< void > owner, RowSink &output) |
| |
| ParserChunkResult | parse_chunk (csv::string_view chunk, std::shared_ptr< void > owner, RowSink &output, size_t source_start) |
| |
| ParserChunkResult | parse_chunk (csv::string_view chunk, std::shared_ptr< void > owner, RowSink &output, const ParserChunkOptions &options) |
| |
Parser for memory-mapped files.
- Implementation
- This class constructs moving windows over a file to avoid creating massive memory maps which may require more RAM than the user has available. It contains logic to automatically re-align each memory map to the beginning of a CSV row.
- Head buffer
- CSVReader may prime a pre-read head buffer used for format guessing via prime_head_for_reuse(). When provided, the first next() call parses that buffer directly, then resumes mmap reads from the proper file offset while preserving chunk-boundary remainder semantics.
Definition at line 23 of file mmap.hpp.