OmniSciDB
a5dc49c757
|
Functions | |
void | adjust_eof (size_t &read_size, const size_t buffer_size, char *buffer, const char line_delim) |
size_t | offset_to_index (const std::vector< size_t > &cumulative_sizes, size_t byte_offset) |
size_t | get_data_size (size_t file_size, size_t header_size) |
void foreign_storage::anonymous_namespace{FileReader.cpp}::adjust_eof | ( | size_t & | read_size, |
const size_t | buffer_size, | ||
char * | buffer, | ||
const char | line_delim | ||
) |
Adds an end of line character (specified by the line_delim parameter) to provided buffer, if this is the last read buffer and if the buffer does not already end with an end of line character. This allows for appropriate parsing by the file_buffer_parser utility functions, which expect the end of rows to be indicated by end of line characters in the buffer. Also removes extra EOL that may be inserted at the EOF that will not be present if the file is appended to
Definition at line 37 of file FileReader.cpp.
References CHECK.
Referenced by foreign_storage::MultiFileReader::read(), and foreign_storage::CompressedFileReader::readInternal().
size_t foreign_storage::anonymous_namespace{FileReader.cpp}::get_data_size | ( | size_t | file_size, |
size_t | header_size | ||
) |
Definition at line 66 of file FileReader.cpp.
Referenced by foreign_storage::SingleTextFileReader::checkForMoreRows(), and foreign_storage::SingleTextFileReader::SingleTextFileReader().
size_t foreign_storage::anonymous_namespace{FileReader.cpp}::offset_to_index | ( | const std::vector< size_t > & | cumulative_sizes, |
size_t | byte_offset | ||
) |
cumulative_sizes | Size of each file + all previous files |
byte_offset | byte offset into the fileset from the initial scan |
Definition at line 57 of file FileReader.cpp.
References gpu_enabled::upper_bound().
Referenced by foreign_storage::CompressedFileReader::readRegion(), and foreign_storage::MultiFileReader::readRegion().