30 #include <boost/algorithm/string.hpp>
31 #include <boost/algorithm/string/predicate.hpp>
32 #include <boost/iostreams/filter/gzip.hpp>
33 #include <boost/shared_array.hpp>
37 #include <sys/types.h>
56 LoadDataSourceFileLocal::LoadDataSourceFileLocal(
const string &fname,
57 const string &header_fname,
int row_uniquify_chars,
int load_flags)
59 m_source(fname), m_fname(fname) {
64 if (boost::algorithm::ends_with(fname,
".gz")) {
65 m_fin.push(gzip_decompressor());
86 uint64_t new_offset =
m_source.seek(0, BOOST_IOS::cur);
88 m_offset = new_offset;
static bool exists(const String &fname)
Checks if a file or directory exists.
static uint64_t size(const String &fname)
Returns the size of a file (0 on error)
File system utility functions.
A dynamic, resizable memory buffer.
boost::iostreams::filtering_istream m_fin
Logging routines and macros.
Compatibility Macros for C/C++.
boost::iostreams::file_source m_source
unsigned long m_source_size
Error codes, Exception handling, error logging.
#define HT_THROW(_code_, _msg_)