#include <InternalIntroSort.hpp>
Static Public Member Functions | |
template<typename Value > | |
static void | sort (Postlist< Value > &postlist, Quantile &quantile, Sorting mode) |
template<typename Value > | |
static void | sort (std::vector< Value > &values, Quantile &quantile, Sorting mode) |
Private Types | |
typedef Configuration::Sorting | Sorting |
Private Member Functions | |
InternalIntroSort () | |
Static Private Member Functions | |
template<typename Value > | |
static void | comp_quantile (const std::vector< Value > &values, Quantile &quantile) |
A class that provides a static method to sort a postlist in memory. The algorithm used is std::sort
of the STL, which is currently an SGI implementation of introsort.
Definition at line 27 of file InternalIntroSort.hpp.
typedef Configuration::Sorting aitools::invertedindex::InternalIntroSort::Sorting [private] |
Definition at line 31 of file InternalIntroSort.hpp.
aitools::invertedindex::InternalIntroSort::InternalIntroSort | ( | ) | [private] |
void aitools::invertedindex::InternalIntroSort::comp_quantile | ( | const std::vector< Value > & | values, | |
Quantile & | quantile | |||
) | [inline, static, private] |
Definition at line 108 of file InternalIntroSort.hpp.
References aitools::invertedindex::Quantile::at(), aitools::invertedindex::Quantile::clear(), aitools::invertedindex::Quantile::COUNT, aitools::invertedindex::Quantile::P10, aitools::invertedindex::Quantile::P100, and aitools::invertedindex::Quantile::P91.
void aitools::invertedindex::InternalIntroSort::sort | ( | std::vector< Value > & | values, | |
Quantile & | quantile, | |||
Sorting | mode | |||
) | [inline, static] |
Definition at line 89 of file InternalIntroSort.hpp.
References aitools::invertedindex::Configuration::ASCENDING, and aitools::invertedindex::Configuration::DESCENDING.
void aitools::invertedindex::InternalIntroSort::sort | ( | Postlist< Value > & | postlist, | |
Quantile & | quantile, | |||
Sorting | mode | |||
) | [inline, static] |
Definition at line 59 of file InternalIntroSort.hpp.
References aitools::invertedindex::PostlistBuilder::append(), aitools::invertedindex::PostlistBuilder::build(), aitools::invertedindex::Configuration::DISABLED, aitools::invertedindex::Postlist< Value >::iterator(), aitools::invertedindex::Postlist< Value >::length(), aitools::invertedindex::Postlist< Value >::next(), and aitools::invertedindex::PostlistBuilder::set_checksum().
Referenced by aitools::invertedindex::PostlistSorter::sort().