ExternalSorter#

class numpy::ExternalSorter#

numpy C++ class.

Example#

#include <numpy/np_ndarray.h>
using namespace numpy;

// Use ExternalSorter
ExternalSorter obj;
// ... operations ...

Constructors#

Signature

Location

Example

ExternalSorter(size_tmem_limit = 100\*1024\*1024, const std::string &temp_directory = "./temp")

NP_SORTING_ALGORITHMS.H:1831

Sorting#

Signature

Return Type

Location

Example

void sort_chunk(std::vector<T>&chunk, const std::string &filename)

void

NP_SORTING_ALGORITHMS.H:1764

void sort_file(const std::string &input_file, const std::string &output_file)

void

NP_SORTING_ALGORITHMS.H:1836

Other Methods#

Signature

Return Type

Location

Example

void merge_chunks(const std::vector<std::string>&chunk_files, const std::string &output_file)

void

NP_SORTING_ALGORITHMS.H:1773