| 68 | } |
| 69 | |
| 70 | void LoadComperator(int offset) { |
| 71 | TSortInfo* tsort_info = pool_.Add(new TSortInfo); |
| 72 | tsort_info->sorting_order = TSortingOrder::ZORDER; |
| 73 | TupleRowComparatorConfig* config = |
| 74 | pool_.Add(new TupleRowComparatorConfig(*tsort_info, ordering_exprs_)); |
| 75 | comperator_.reset(new TupleRowZOrderComparator(*config)); |
| 76 | ASSERT_OK(comperator_->Open(&pool_, runtime_state_, &expr_perm_pool_, |
| 77 | &expr_results_pool_)); |
| 78 | } |
| 79 | |
| 80 | // Only ColumnType should be passed as template parameter. |
| 81 | template <typename... Types> |