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

Method Init

be/src/runtime/sorter.cc:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44const CodegenFnPtr<SortedRunMerger::HeapifyHelperFn> Sorter::default_heapify_helper_fn_{};
45
46Status Sorter::Page::Init(Sorter* sorter) {
47 const BufferPool::BufferHandle* page_buffer;
48 RETURN_IF_ERROR(pool()->CreatePage(sorter->buffer_pool_client_, sorter->page_len_,
49 &handle_, &page_buffer));
50 data_ = page_buffer->data();
51 return Status::OK();
52}
53
54BufferPool::BufferHandle Sorter::Page::ExtractBuffer(BufferPool::ClientHandle* client) {
55 DCHECK(data_ != nullptr) << "Page must be in memory";

Callers 15

AddPageMethod · 0.45
OpenMethod · 0.45
AddBatchMethod · 0.45
MergeIntermediateRunsMethod · 0.45
SetUpMethod · 0.45
TESTFunction · 0.45
GetTableMethod · 0.45
DeserializeMethod · 0.45
SerializeMethod · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45

Calls 8

OKFunction · 0.85
SubstituteFunction · 0.85
CreatePageMethod · 0.80
StatusClass · 0.70
dataMethod · 0.45
DebugStringMethod · 0.45
AddMethod · 0.45

Tested by 6

SetUpMethod · 0.36
TESTFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36