Create a tuple comparator to sort in ascending order on the single bigint column.
| 405 | |
| 406 | // Create a tuple comparator to sort in ascending order on the single bigint column. |
| 407 | void CreateTupleComparator(TupleRowComparator** less_than_comparator) { |
| 408 | TupleRowComparatorConfig* comparator_config = |
| 409 | obj_pool_.Add(new TupleRowComparatorConfig(tsort_info_, ordering_exprs_)); |
| 410 | *less_than_comparator = |
| 411 | obj_pool_.Add(new TupleRowLexicalComparator(*comparator_config)); |
| 412 | ASSERT_OK((*less_than_comparator)->Open( |
| 413 | &obj_pool_, runtime_state_.get(), mem_pool_.get(), mem_pool_.get())); |
| 414 | } |
| 415 | |
| 416 | // Create batch_, but don't fill it with data yet. Assumes we created row_desc_. |
| 417 | RowBatch* CreateRowBatch() { |