MCPcopy Create free account
hub / github.com/apache/impala / CreateTupleComparator

Method CreateTupleComparator

be/src/runtime/data-stream-test.cc:407–414  ·  view source on GitHub ↗

Create a tuple comparator to sort in ascending order on the single bigint column.

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
AddMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected