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>
57 const string &fname,
const string &header_fname,
int row_uniquify_chars,
int load_flags)
58 :
LoadDataSource(header_fname, row_uniquify_chars, load_flags), m_cur_offset(0) {
63 if (boost::algorithm::ends_with(fname,
".gz")) {
64 m_fin.push(gzip_decompressor());
86 m_cur_offset = new_offset;
virtual size_t bytes_read()
File system utility functions.
A dynamic, resizable memory buffer.
std::shared_ptr< Client > ClientPtr
Smart pointer to Client.
boost::iostreams::filtering_istream m_fin
Logging routines and macros.
Compatibility Macros for C/C++.
unsigned long m_cur_offset
FsBroker::Lib::FileSource * m_source
unsigned long m_source_size
Error codes, Exception handling, error logging.