Class foreign_storage::SingleFileReader

class SingleFileReader : public foreign_storage::FileReader

Subclassed by foreign_storage::CompressedFileReader, foreign_storage::SingleTextFileReader

Public Functions

SingleFileReader(const std::string &file_path, const import_export::CopyParams &copy_params)
~SingleFileReader()
FirstLineByFilePath getFirstLineForEachFile() const

Returns a map containing the first line for each file that will be read.

bool isEndOfLastFile()

Returns a boolean indicating whether the reader is at the end of the last file that was read.

Protected Functions

virtual std::string getFirstLine() const = 0
virtual void skipHeader() = 0

Protected Static Attributes

constexpr size_t DEFAULT_HEADER_READ_SIZE = {1024}