|
| line_sorter (StrictWeakOrdering cmp, const std::string &tmp=".", const double max_blockMB=2048.0, const bool uniq=false, const bool assertuniq=false, const size_t maxopenfiles=0) |
| Constructor.
|
|
line_sorter & | safe () |
| Reset a call to unsafe().
|
|
line_sorter & | unsafe () |
| Do not check if input file are sorted in merge().
|
|
line_sorter & | mmapmerge () |
|
line_sorter & | nommapmerge () |
|
void | sort_block (const char *const data_begin, const char *const data_end, std::ostream &out) |
| Sort a block of lines in memory to a stream.
|
|
void | sort_file (const std::string &fn_in, std::ostream &out) |
| Sort a file.
|
|
void | sort_file (std::istream &is, std::ostream &out) |
| Sort a stream.
|
|
void | sort_file (const std::string &fn_in, const std::string &fn_out) |
| Sort a file.
|
|
void | sort_file (const std::string &fn) |
| Sort and replace a file.
|
|
void | sort_files (const std::vector< std::string > &fn, std::ostream &out) |
| Sort & merge multiple files.
|
|
void | sort_files (const std::vector< std::string > &fn, const std::string &fn_out) |
| Sort & merge multiple files.
|
|
bool | is_sorted (std::istream &in) |
| Check if a file is sorted. More...
|
|
bool | is_sorted (std::istream &in, size_t *const line) |
| Check if a file is sorted. More...
|
|
bool | is_sorted (const std::string &fn, size_t *const line=0) |
| Check if a file is sorted. More...
|
|
void | merge_files (const std::vector< std::string > &infiles, std::ostream &out) |
| Merge sorted text files. More...
|
|
void | merge_files (const std::vector< std::string > &infiles, const std::string &fn_out) |
| Merge sorted text files.
|
|
std::pair< off_t, std::string > | upper_bound (std::istream &in, const std::string &what, const off_t rangemin=0l, off_t rangemax=-1l) |
| Binary search on a text file. More...
|
|
std::pair< off_t, std::string > | lower_bound (std::istream &in, const std::string &what, const off_t rangemin=0l, off_t rangemax=-1l) |
| Binary search on a text file. More...
|
|