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

Method ExtractBuffer

be/src/runtime/sorter.cc:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54BufferPool::BufferHandle Sorter::Page::ExtractBuffer(BufferPool::ClientHandle* client) {
55 DCHECK(data_ != nullptr) << "Page must be in memory";
56 BufferPool::BufferHandle buffer;
57 Status status = pool()->ExtractBuffer(client, &handle_, &buffer);
58 DCHECK(status.ok()) << "Page was in memory, ExtractBuffer() shouldn't fail";
59 Reset();
60 return buffer;
61}
62
63uint8_t* Sorter::Page::AllocateBytes(int64_t len) {
64 DCHECK_GE(len, 0);

Callers 2

GetNextMethod · 0.45
AttachBufferToBatchMethod · 0.45

Calls 1

okMethod · 0.45

Tested by

no test coverage detected