23 #ifndef QUERYENGINE_STREAMINGTOPN_H
24 #define QUERYENGINE_STREAMINGTOPN_H
30 namespace streaming_top_n {
32 size_t get_heap_size(
const size_t row_size,
const size_t n,
const size_t thread_count);
37 const size_t heaps_size,
39 const size_t thread_count);
52 const size_t target_idx);
55 namespace Data_Namespace {
62 std::vector<int8_t> pick_top_n_rows_from_dev_heaps(
64 const int64_t* dev_heaps,
67 const size_t thread_count,
70 #endif // QUERYENGINE_STREAMINGTOPN_H
size_t get_rows_offset_of_heaps(const size_t n, const size_t thread_count)
size_t get_heap_key_slot_index(const std::vector< Analyzer::Expr * > &target_exprs, const size_t target_idx)
std::vector< int8_t > get_rows_copy_from_heaps(const int64_t *heaps, const size_t heaps_size, const size_t n, const size_t thread_count)
size_t get_heap_size(const size_t row_size, const size_t n, const size_t thread_count)