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

Method GetCollectionMemory

be/src/exec/hdfs-columnar-scanner.cc:359–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359Status HdfsColumnarScanner::GetCollectionMemory(CollectionValueBuilder* builder,
360 MemPool** pool, Tuple** tuple_mem, TupleRow** tuple_row_mem, int64_t* num_rows) {
361 SCOPED_TIMER(get_collection_mem_timer_);
362 int num_tuples;
363 *pool = builder->pool();
364 RETURN_IF_ERROR(builder->GetFreeMemory(tuple_mem, &num_tuples));
365 // Treat tuple as a single-tuple row
366 *tuple_row_mem = reinterpret_cast<TupleRow*>(tuple_mem);
367 *num_rows = num_tuples;
368 return Status::OK();
369}
370}

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
GetFreeMemoryMethod · 0.80
poolMethod · 0.45

Tested by

no test coverage detected