OmniSciDB
a5dc49c757
|
#include <SpeculativeTopN.h>
Public Member Functions | |
SpeculativeTopNMap () | |
SpeculativeTopNMap (const ResultSet &rows, const std::vector< Analyzer::Expr * > &target_exprs, const size_t truncate_n) | |
void | reduce (SpeculativeTopNMap &that) |
std::shared_ptr< ResultSet > | asRows (const RelAlgExecutionUnit &ra_exe_unit, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const QueryMemoryDescriptor &query_mem_desc, const Executor *executor, const size_t top_n, const bool desc) const |
Private Attributes | |
std::unordered_map< int64_t, SpeculativeTopNVal > | map_ |
size_t | unknown_ |
Definition at line 57 of file SpeculativeTopN.h.
SpeculativeTopNMap::SpeculativeTopNMap | ( | ) |
Definition at line 23 of file SpeculativeTopN.cpp.
SpeculativeTopNMap::SpeculativeTopNMap | ( | const ResultSet & | rows, |
const std::vector< Analyzer::Expr * > & | target_exprs, | ||
const size_t | truncate_n | ||
) |
Definition at line 25 of file SpeculativeTopN.cpp.
References CHECK, CHECK_EQ, map_, and unknown_.
std::shared_ptr< ResultSet > SpeculativeTopNMap::asRows | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
std::shared_ptr< RowSetMemoryOwner > | row_set_mem_owner, | ||
const QueryMemoryDescriptor & | query_mem_desc, | ||
const Executor * | executor, | ||
const size_t | top_n, | ||
const bool | desc | ||
) | const |
Definition at line 92 of file SpeculativeTopN.cpp.
References CHECK_EQ, CPU, heavyai::GroupByBaselineHash, map_, query_mem_desc, gpu_enabled::sort(), gpu_enabled::swap(), RelAlgExecutionUnit::target_exprs, target_exprs_to_infos(), and SpeculativeTopNEntry::val.
Referenced by Executor::reduceSpeculativeTopN().
void SpeculativeTopNMap::reduce | ( | SpeculativeTopNMap & | that | ) |
Definition at line 70 of file SpeculativeTopN.cpp.
References CHECK, map_, unknown_, and SpeculativeTopNVal::val.
Referenced by Executor::reduceSpeculativeTopN().
|
private |
Definition at line 75 of file SpeculativeTopN.h.
Referenced by asRows(), reduce(), and SpeculativeTopNMap().
|
private |
Definition at line 76 of file SpeculativeTopN.h.
Referenced by reduce(), and SpeculativeTopNMap().